Registry / devops / node-jsjs

node-jsjs

JSON →
library0.1.7jsnpmunverified

Jsjs is a JavaScript dialectic transpiler that converts alternative JavaScript-like syntaxes into standard JavaScript. Version 0.1.7 is the latest stable release, though the project appears to be in an early stage with minimal features and low release cadence. It supports dialects such as 'js' (standard ECMAScript 5) and 'gs' (Go-inspired syntax without types). It can be used as a command-line tool or programmatically via Node.js require extensions. Differentiators include its focus on alternative syntax transpilation and Node require hook support, but it lacks active development and documentation.

npm install node-jsjs
INSTALL
IMPORT
SIG · NODE-JSJS
N
node-jsjs
devopsjavascriptv0.1.7
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.

jsjs
const jsjs = require('jsjs');
import jsjs from 'jsjs';
Package is CJS-only; ESM imports will fail.
register
const { register } = require('jsjs');
import { register } from 'jsjs';
Must use destructuring from CJS require.
dialects
const { dialects } = require('jsjs');
const dialects = require('jsjs').dialects;
Destructuring is idiomatic.

Transpile Go-Script to JavaScript using the Jsjs library programmatically.

const jsjs = require('jsjs'); const gsDialect = jsjs.dialects.gs; const code = ` func pow(a, b) { for r := a, n := 0; n < b; n++ { r = r * a } return r } `; const result = jsjs.transpile(code, { dialect: gsDialect }); console.log(result);
jsjs --version
Debug
Known issues
gotchaPackage has very limited documentation and no clear API stability. Use at your own risk.
fix
Review source code or consider alternative tools.
affects: >=0.0.0
gotchaOnly supports Node.js CommonJS modules. No ESM or browser support.
fix
Use require() instead of import.
affects: >=0.0.0
gotchaThe package is not actively maintained. Last update likely old.
fix
Check GitHub for recent activity before relying on it.
affects: >=0.0.0
gotchaCLI tool may have limited features and no error handling.
fix
Test with small inputs first.
affects: >=0.0.0
Errors
Common errors & fixes
SyntaxError: Unexpected identifier
Input code in unsupported dialect without specifying dialect option.
fix
Add dialect option matching the input syntax.
TypeError: jsjs.transpile is not a function
Likely using ESM import syntax; package is CJS-only.
fix
Switch to require('jsjs').
Error: No dialect provided
Missing dialect option in transpile call.
fix
Provide a valid dialect object from jsjs.dialects.
Upgrade
Version history
0.1.7latest on npm
Audit
Dependencies

No dependency data recorded yet.

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