1.0.3 • Published 3 years ago

@alu0101330105/constant-folding v1.0.3

Weekly downloads
-
License
Unlicense
Repository
github
Last release
3 years ago

npm version CI for constant-folding

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 alu0101330105@ull.edu.es