Registry / devops / jspp-compiler

jspp-compiler

JSON →
library2.0.8jsnpmunverified

JSPP Compiler (v2.0.8) transpiles JSPP entry files and included modules into standalone JavaScript. It automatically resolves includes without manual std inclusion. Released as an npm package, it is the primary compiler for the JSPP language aimed at browser-compatible output. Minimal configuration: entry file, root directory, and output file.

npm install jspp-compiler
INSTALL
IMPORT
SIG · JSPP-COMPILER
J
jspp-compiler
devopsjavascriptv2.0.8
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.

compile
import { compile } from 'jspp-compiler';
Default export is not defined; use named export.
compileFile
import { compileFile } from 'jspp-compiler';
const compileFile = require('jspp-compiler').compileFile;
Works in both ESM and CJS.

Transpiles a JSPP entry file to JavaScript using compileFile.

import { compileFile } from 'jspp-compiler'; const inputFilePath = 'path/to/entry.jspp'; const rootDir = 'path/to/root'; const outputFilePath = 'path/to/output.js'; compileFile({ input: inputFilePath, root: rootDir, output: outputFilePath });
jspp-compiler --version
Debug
Known issues
gotchaThe root directory must be provided and must be absolute or relative to the current working directory. Incorrect root may cause include resolution failures.
fix
Use absolute paths or ensure relative paths are correct.
affects: >=2.0.0
breakingVersion 2.0.0 changed the API from callback-based to promise-based. Old code using callbacks will break.
fix
Migrate to async/await or .then() patterns.
affects: >=2.0.0
Errors
Common errors & fixes
Error: Cannot find module 'jspp-compiler'
Package not installed
fix
Run 'npm install jspp-compiler'
TypeError: compile is not a function
Importing incorrectly (default vs named)
fix
Use named import: import { compile } from 'jspp-compiler'
Upgrade
Version history
2.0.8latest on npm
Audit
Dependencies

No dependency data recorded yet.

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