jsm-compiler
raw JSON → 0.3.1 verified Fri May 01 auth: no javascript abandoned
A JavaScript module compiler that enables namespaces and templates for creating basic JavaScript applications. Version 0.3.1 is the last release, with no updates since 2016. It compiles files with custom syntax (namespaces, templates, classes) into plain JavaScript. Key differentiators include automatic namespace generation and template embedding. However, the project is effectively abandoned with no maintenance, making it unsuitable for production use.
Common errors
error Error: Cannot find module 'jsm-compiler' ↓
cause Package not installed globally or locally.
fix
Run 'npm install -g jsm-compiler'
error jsmc: command not found ↓
cause Global install directory not in PATH.
fix
Ensure npm global binaries are in PATH, or use 'npx jsm-compiler'
Warnings
breaking Package is unmaintained since 2016, may not work with modern Node.js versions. ↓
fix Avoid using this package; consider alternatives like Babel or TypeScript.
Install
npm install jsm-compiler yarn add jsm-compiler pnpm add jsm-compiler Imports
- jsmc wrong
jsmc from 'jsm-compiler'correctnpx jsm-compiler
Quickstart
npm install -g jsm-compiler
jsmc create myproject
cd myproject
echo 'namespace com.example;
MyClass = function() { this.x = 1; }' > src/index.jsm
jsmc build