@alu0101330105/constant-folding
v1.0.3
Published
Constant Folding javascript code
Downloads
7
Maintainers
Readme
constant-folding
Module that offers a simple constant folding function for your code, it gets rid of opperations between literals such as 2 + 3
.
Installation
Usage as executable:
$ cf inputCode.js [-o] [outputFile.js]
Usage from code:
const constantFolding = require('constant-folding');
let foldedCode = constantfolding(codeToFold);
The documentation of the function.
Examples
Author
Name Jorge Gonzalez Delgado Email [email protected]