@alu0101330105/constant-folding

1.0.3 • Public • Published

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

Package Sidebar

Install

npm i @alu0101330105/constant-folding

Weekly Downloads

3

Version

1.0.3

License

Unlicense

Unpacked Size

1.03 MB

Total Files

39

Last publish

Collaborators

  • alu0101330105