NeJS

raw JSON →
0.1.19 verified Fri May 01 auth: no javascript deprecated

A deprecated ECMAScript 6 to ECMAScript 3 transpiler. Last release v0.1.19, no updates since 2015. Supports let/const, arrow functions, rest/default/named parameters. Superseded by Babel (formerly 6to5). Not maintained; use Babel or modern transpilers.

error Cannot find module 'nejs'
cause Trying to require('nejs') in Node.js; no programmatic API.
fix
Use CLI: nejs [options]; or install globally and run as child process.
error nejs: command not found
cause NeJS not installed globally.
fix
Run: npm install -g nejs
error SyntaxError: Unexpected token
cause ES6 features not supported by NeJS (e.g., classes, template literals).
fix
Use Babel instead for full ES6 support.
deprecated NeJS is deprecated; use Babel (formerly 6to5) instead.
fix Migrate to Babel: npm install -g babel-cli; babel script.js
breaking No programmatic API; only CLI usage.
fix Use child_process or switch to a library with API.
gotcha Only supports a subset of ES6 features: let/const, arrow functions, rest/default/named parameters.
fix Use Babel for full ES6+ support.
breaking No longer maintained; last release 2015.
fix Switch to an actively maintained transpiler.
npm install nejs
yarn add nejs
pnpm add nejs

Installs globally and shows help; no code example due to lack of API.

npm install -g nejs
nejs --help