Registry / devops / kmc
library1.2.2jsnpmunverified

A Node.js-based module bundler for KISSY framework, supporting KISSY 1.2+. Current stable version 1.2.2 (last release). It provides config API similar to KISSY's browser-side config, supports mixed encoding (e.g., GBK output), automatic combo for KISSY 1.3, dependency analysis, and regex-based module name mapping. Alternatives include the official Java-based KISSY build tool and grunt-kmc. Release cadence is low; no updates since 2015.

npm install kmc
INSTALL
IMPORT
SIG · KMC
K
kmc
devopsjavascriptv1.2.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

kmc
const kmc = require('kmc');
import kmc from 'kmc';
This package only supports CommonJS require; no ES module or TypeScript type definitions available.

Shows basic configuration and build process for bundling a KISSY module using absolute paths.

const kmc = require('kmc'); kmc.config({ packages: [{ name: 'myapp', path: '/absolute/path/to/myapp', charset: 'utf-8' }] }); kmc.build({ src: '/absolute/path/to/myapp/src/main.js', dest: '/absolute/path/to/myapp/build/main.combine.js', outputCharset: 'utf-8' }); console.log('Build completed.');
kmc --version
Debug
Known issues
gotchaAll paths must be absolute; relative paths will cause unexpected behavior.
fix
Use path.resolve(__dirname, 'relative/path') to convert to absolute paths.
affects: >=1.0.0
gotchaThe package expects Node.js >=0.10.0 (pre-ES6). It may not work on modern Node versions without compatibility shims.
fix
Use a Node version manager (e.g., nvm) with Node 10 or lower, or consider alternative bundlers like Webpack.
affects: >=1.0.0
gotchakmc.config() without arguments returns the current config; it does not reset the config. Call kmc.clean() first if you need to clear.
fix
Use kmc.clean() before calling kmc.config() with new settings.
affects: >=1.0.0
gotchaSuffix configuration in kmc.config does not include a dot; e.g., use '.combine' not 'combine'.
fix
Set suffix: '.combine' (including the dot).
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'kmc'
Package not installed or not required correctly.
fix
Run 'npm install kmc' and use 'const kmc = require('kmc');'
Error: ENOENT: no such file or directory, open '...'
Source or destination path is incorrect or not absolute.
fix
Use absolute paths for src and dest in kmc.build().
TypeError: kmc.build is not a function
Incorrect import method (e.g., ES import) or using an older version.
fix
Use 'const kmc = require('kmc');' and ensure version >=1.0.0.
Upgrade
Version history
1.2.2latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
kmc — npm install kmc · libregistry