Registry / web-framework / node-kit

node-kit

JSON →
library0.11.0jsnpmunverified

Node-based compiler for .kit template files (CodeKit format). Version 0.11.0, last updated in 2018. Low maintenance cadence. Supports variables, includes, and preprocessing for HTML templates. Differentiator: replicates CodeKit's .kit workflow in Node.js, enabling server-side or build-time compilation without the GUI.

npm install node-kit
INSTALL
IMPORT
SIG · NODE-KIT
N
node-kit
web-frameworkjavascriptv0.11.0
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.

kit
import kit from 'node-kit'
const kit = require('node-kit')
Default export in ESM; also available as CommonJS require for older Node versions.
compile
import { compile } from 'node-kit'
const compile = require('node-kit/compile')
Named export for compile function; no submodule export.
compileFile
import { compileFile } from 'node-kit'
const compileFile = require('node-kit').compileFile
Direct named export; also accessible via default import property.

Compiles a .kit file to HTML using the default export.

import kit from 'node-kit'; const html = kit('path/to/template.kit'); console.log(html);
node-kit --version
Debug
Known issues
gotchaDefault export is not a function in all versions? Verify.
fix
Use named exports or ensure correct import style.
affects: >=0.0.0
deprecatedPackage has not been updated since 2018, may contain unpatched vulnerabilities.
fix
Consider alternatives or pin to known safe version.
affects: >=0.0.0
gotchaOnly works with .kit files; not compatible with other template formats.
fix
Ensure input files have .kit extension.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'node-kit'
Package not installed or not in node_modules.
fix
Run `npm install node-kit` in your project directory.
TypeError: kit is not a function
Incorrect import style; default import not used properly.
fix
Use `import kit from 'node-kit'` or `const kit = require('node-kit')` for CommonJS.
Upgrade
Version history
0.11.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
node-kit — npm install node-kit · libregistry