moon-bignum
v0.1.0
Published
Minimalistic bignum library compiled from Moon-lang.
Downloads
4
Readme
Moon-bignum
This is mostly an example of how to use Moon to export a npm
lib. The steps are simple:
Create your library as a
lib.moon
file.Use
echo \"module.exports = $(moon compile lib)()\" > lib.js
to make a CommonJS lib.Optionally, use
ccjs lib.js > lib.min.js
to minify.Export it on
package.json
.
Note: this uses very simple bignum algorithms and isn't very optimized. Division in particular is very slow.