npm.io
0.11.111111111111 • Published 2d ago

crash-js

Licence
AGPL-3.0-or-later
Version
0.11.111111111111
Deps
2
Size
275 kB
Vulns
0
Weekly
0
Stars
3

Crash JavaScript

A collection of JavaScript utility functions.

The Crash Javascript library allows to write Javascript applications written the same as Bash programs written using the Crash Bash library which work both in a Node.js as well as a browser environment without any code changes.

To implement file system functions the library depends on the node:fs module tmcfs override.

Some GNU coreutils utilities like the split function are provided by tmcsplit.

This library is being used by most of Human Instrumentality Project (HIP) JavaScript programs.

Installation

The library in this source repo can be installed from source using GNU Make.

make \
  install

or from the NPM Registry

npm \
  install \
    "crash-js"

Upon installation a pre-built browser-compatible single file webpack one can simply open from a browser can be found in dist/crash-js.js in the Node.js module directory.

The library is officially published on the the uncensorable Ur user repository and application store as libcrash-js. The source code is published on the Ethereum Virtual Machine File System so it can't possibly be taken down.

To install it from there just type

ur \
  libcrash-js

A censorable HTTP Github mirror of the recipe published there is hosted on libcrash-js-ur. Be aware it could go offline any time.

Documentation

The manual can be accessed with

man \
  libcrash-js

An example program using both this library and the Crash Bash library, ahsi, is been made available as a submodule in the examples directory.

Contributing

Bugs can be reported on the issues tracker of Gur source repository mirror for the software now.

The library uses ESLint to build so all merge requests are of course required to pass the test.

Contributing to the software may be eligible to a free purchase of the corresponding Ur for the package by The Martian Company.

License

Crash JavaScript is released by Pellegrino Prevete under the terms of the GNU Affero General Public License version 3.

Keywords