Registry / http-networking / javascwipt

javascwipt

JSON →
library1.0.10jsnpmunverified

JavaScwipt is an esoteric, UwU-ified version of JavaScript that replaces standard keywords with cutesy alternatives (e.g., `var` → `vawar`, `let` → `nya`, `const` → `fowever`, `function` → `fuwunction`, `return` → `bacc`, `class` → `cwass`). It uses acornjs and escodegen to transpile `.jscwipt` source files into plain JavaScript (`.js` or `.mjs`). The npm package provides both a library API and the `jswc` CLI tool. Version 1.0.10 is the current stable release; the project is maintained as a novelty/educational tool. Unlike standard JavaScript, JavaScwipt forces the use of replaced keywords and reserves original JS keywords, meaning you must write `nya x = 1` instead of `let x = 1`. The tool is not meant for production use but for fun, learning transpiler internals, or novelty code.

npm install javascwipt
INSTALL
IMPORT
SIG · JAVASCWIPT
J
javascwipt
http-networkingjavascriptv1.0.10
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 'javascwipt'
const javascwipt = require('javascwipt'); javascwipt.compile('nya x = 1')
Default export is not available; named import `compile` is the correct entry point.
compileFile
import { compileFile } from 'javascwipt'
Consumes a file path to .jscwipt and produces compiled string. Only works with Node.js due to file system access.
jswc CLI
install globally (npm install -g javascwipt) then run: jswc [mode]
jswc compile
No `compile` subcommand; `jswc` alone compiles to .js, `jswc mjs` to .mjs.

Creates a .jscwipt file with UwU syntax, compiles it to .js/.mjs using jswc CLI, and runs with Node.js. Also shows programmatic compile usage.

// Install globally: npm install -g javascwipt // Create src/test.jscwipt with: /* nya x = 'Hello World!'; console.log(x); */ // Run in terminal: // jswc → produces src/test.js // jswc mjs → produces src/test.mjs // node src/test.mjs // Output: Hello World! // Programmatic usage: // import { compile } from 'javascwipt'; // const compiled = compile("nya x = 1; bacc x * 2;"); // console.log(compiled); // 'let x = 1; return x * 2;'
jswc --version
Debug
Known issues
breakingOriginal JavaScript keywords (let, const, var, function, etc.) are treated as syntax errors inside .jscwipt files.
fix
Use UwU replacements: let → nya, const → fowever, var → vawar, function → fuwunction, return → bacc, class → cwass, extends → extwends, this → kohai, super → senpai, if → iwf, else → ewse, for → fwor, while → duwuring, do → dowo, continue → continuwu, break → bweak, switch → mwatch, case → cwase, default → nowormal, true → twue, false → fawse, null → nuwull.
affects: >=1.0.0
gotcha.jscwipt files must be placed in a directory named 'src' relative to where you run the jswc command; otherwise compilation fails with a file-not-found error.
fix
Create a 'src' folder and put all .jscwipt files inside it.
affects: >=1.0.0
gotchaThe CLI's default output is a .js file (CommonJS). To run with modern Node.js (ESM), you must use 'jswc mjs' to produce a .mjs file.
fix
Use 'jswc mjs' for ESM output, then run with 'node src/*.mjs'. For CommonJS, 'jswc' produces .js files.
affects: >=1.0.0
deprecatedNo versions have been deprecated, but the project is a novelty tool; breaking changes may occur without notice if underlying dependencies (acorn, escodegen) update.
fix
Pin versions in package.json if using programmatically. Not recommended for production.
affects: >=1.0.0
gotchaThe library's named exports may not include a default export; attempting import javascwipt from 'javascwipt' will result in undefined.
fix
Use named imports: import { compile } from 'javascwipt'
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module './src/...' or "No .jscwipt files found"
.jscwipt files are not inside a 'src' directory, or the CLI is run from the wrong working directory.
fix
Ensure all .jscwipt files are in a 'src' folder relative to where you run the 'jswc' command.
SyntaxError: Unexpected token (1:4)
Original JavaScript keyword used in .jscwipt file (e.g., 'let x = 1;')
fix
Replace with UwU equivalent: 'nya x = 1;'
TypeError: (intermediate value) is not a function
Using an import pattern like `const jswc = require('javascwipt'); jswc.compile(...)` and calling default export as function.
fix
Use named import: `import { compile } from 'javascwipt'; compile(...)`
ReferenceError: fowever is not defined
Trying to run a .jscwipt file directly in Node.js without transpiling.
fix
Compile first with 'jswc' to produce .js/.mjs, then run the output file.
SyntaxError: Unexpected token '.' (maybe caused by acorn version mismatch?)
Outdated version of JavaScwipt or incompatible acorn version when using modern JS syntax like optional chaining.
fix
Update to latest JavaScwipt (npm update javascwipt) and ensure Node.js version >= 14.
Upgrade
Version history
1.0.10latest on npm
Audit
Dependencies
acornrequiredUsed to parse .jscwipt files into an AST.
escodegenrequiredGenerates JavaScript code from the AST.
Agent activity
14 hits · last 30 days
node
12
OpenAI (training)
1
Resources
javascwipt — npm install javascwipt · libregistry