Registry / http-networking / jsy-node

jsy-node

JSON →
library1.6.6jsnpmunverified

Runtime require hook for the JSY (Offside indention) syntax transpiler, enabling Node.js to load .jsy files directly. Version 1.6.6 is current. Maintenance only; no active development. Key differentiator: automatic registration via require or CLI -r flag, supports Mocha, and provides jsy-node binary. Alternative to manual JSY compilation steps.

npm install jsy-node
INSTALL
IMPORT
SIG · JSY-NODE
J
jsy-node
http-networkingjavascriptv1.6.6
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.

jsy-node
require('jsy-node')
import 'jsy-node'
ESM import not supported; use CommonJS require() to register the hook.
jsy-node/all
require('jsy-node/all')
require('jsy-node')
Use 'jsy-node/all' to load all JSY extensions (e.g., .jsy, .jsy.js).
jsy-node (binary)
jsy-node script.jsv
node script.jsv
Run jsy-node as a CLI tool instead of node -r jsy-node to execute .jsy files.

Install jsy-node and run a .jsy file directly via CLI or node require hook.

// Install globally or locally npm install -g jsy-node // Create hello.jsy // Transpile on execution jsy-node hello.jsy // Alternatively, use require hook node -r jsy-node hello.jsy
jsy-node --version
Debug
Known issues
deprecatedPackage is in maintenance mode; no new features.
fix
Consider alternative for new projects.
affects: >=1.6.6
breakingESM modules cannot use require hook; module must be CommonJS.
fix
Use CommonJS or transpile manually.
affects: >=1.0.0
gotchaThe require hook modifies Node's module loader globally.
fix
Only use in controlled environments.
affects: >=1.0.0
gotchajsy-node/all loads all extensions; may conflict with other hooks.
fix
Use jsy-node directly if only .jsy is needed.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'jsy-transpile'
Missing peer dependency jsy-transpile
fix
npm install jsy-transpile
SyntaxError: Unexpected token import
Using ESM syntax in a .jsy file that is not transpiled
fix
Ensure jsy-node is required before importing .jsy files
Error: Cannot find module './file.jsy'
Relative path incorrect or file not found
fix
Check file path and extension (.jsy)
Upgrade
Version history
1.6.6latest on npm
Audit
Dependencies
jsy-transpilerequiredCore transpiler for JSY syntax
Agent activity
4 hits · last 30 days
node
4
Resources
jsy-node — npm install jsy-node · libregistry