JEFRi Jiffies are a number of "common" utilities for JavaScript/TypeScript pulled from and inspired by other programming languages, and common base tools missing or inconsistent between DOM and Node runtimes.
assert
- common runtime assertions.context
- JavaScript implementation of the Python [with
][pywith] statement.display
- TypeScript implementation of the Rust [Display][rustdisplay] trait.equal
- JavaScript deep equality checkers, including TS type checking.flags
- JavaScript flag, environment, and configuration loader.log
- JavaScript implementation of a [log4j][log4j]-alike logger.result
- JavaScript implementation of Rust's [Option][rustoption] and [Result][rustresult] types.loader.mjs
- Node 16.x typescript-transpiling module loader.
Jiffies also includes several microframeworks.
dom
- a tiny DOM functional library.pico
- a copy of PicoCSS.scope
- JavaScript testing microframework.server
- Node HTTP Server & middleware.
- Clone jiffies
- cd jiffies
- npm install
- npm link
After any edit
- npm run build
Alternatively, in a background terminal
- npm run watch &
- Create app folder
- npm init
- npm install -D prettier typescript@next
- npm link @jefri/jiffies
- npm start