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 javascwiptNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
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.
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.
Create a 'src' folder and put all .jscwipt files inside it.
Use 'jswc mjs' for ESM output, then run with 'node src/*.mjs'. For CommonJS, 'jswc' produces .js files.
Pin versions in package.json if using programmatically. Not recommended for production.
Use named imports: import { compile } from 'javascwipt'Ensure all .jscwipt files are in a 'src' folder relative to where you run the 'jswc' command.
Replace with UwU equivalent: 'nya x = 1;'
Use named import: `import { compile } from 'javascwipt'; compile(...)`Compile first with 'jswc' to produce .js/.mjs, then run the output file.
Update to latest JavaScwipt (npm update javascwipt) and ensure Node.js version >= 14.