{"id":27177,"library":"node-kit","title":"Node Kit","description":"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.","status":"maintenance","version":"0.11.0","language":"javascript","source_language":"en","source_url":"git://github.com/jeremyworboys/node-kit","tags":["javascript","node","kit","codekit","preprocess","preprocessor","html","import","include"],"install":[{"cmd":"npm install node-kit","lang":"bash","label":"npm"},{"cmd":"yarn add node-kit","lang":"bash","label":"yarn"},{"cmd":"pnpm add node-kit","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Default export in ESM; also available as CommonJS require for older Node versions.","wrong":"const kit = require('node-kit')","symbol":"kit","correct":"import kit from 'node-kit'"},{"note":"Named export for compile function; no submodule export.","wrong":"const compile = require('node-kit/compile')","symbol":"compile","correct":"import { compile } from 'node-kit'"},{"note":"Direct named export; also accessible via default import property.","wrong":"const compileFile = require('node-kit').compileFile","symbol":"compileFile","correct":"import { compileFile } from 'node-kit'"}],"quickstart":{"code":"import kit from 'node-kit';\nconst html = kit('path/to/template.kit');\nconsole.log(html);","lang":"javascript","description":"Compiles a .kit file to HTML using the default export."},"warnings":[{"fix":"Use named exports or ensure correct import style.","message":"Default export is not a function in all versions? Verify.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Consider alternatives or pin to known safe version.","message":"Package has not been updated since 2018, may contain unpatched vulnerabilities.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Ensure input files have .kit extension.","message":"Only works with .kit files; not compatible with other template formats.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `npm install node-kit` in your project directory.","cause":"Package not installed or not in node_modules.","error":"Error: Cannot find module 'node-kit'"},{"fix":"Use `import kit from 'node-kit'` or `const kit = require('node-kit')` for CommonJS.","cause":"Incorrect import style; default import not used properly.","error":"TypeError: kit is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}