cashc-web

0.9.2 • Public • Published

cashc-web

This is a workaround that allows cashc to work in Web environemnts.

The underlying parser library used by CashScript (antlr4ts) has circular dependencies and will not bundle correctly with some tools (e.g. rollup).

This causes runtime errors: https://github.com/tunnelvisionlabs/antlr4ts/issues/466

Webpack does not appear to have this issue, so it is used here to bundle cashc AND antlr4ts into a single package (with polyfills).

Example

import { compileString } from 'cashc-web';

compileString('YOUR_CASHSCRIPT_CODE');

Readme

Keywords

Package Sidebar

Install

npm i cashc-web

Weekly Downloads

0

Version

0.9.2

License

MIT

Unpacked Size

1.57 MB

Total Files

8

Last publish

Collaborators

  • jimtendo