[![npm version](https://badge.fury.io/js/%40aluXXX%2Fconstant-folding.svg)](https://badge.fury.io/js/%40aluXXX%2Fconstant-folding)
[![CI for constant-folding](https://github.com/ULL-ESIT-PL-2021/constant-folding-module-aluXXX/actions/workflows/nodejs.yml/badge.svg)](https://github.com/ULL-ESIT-PL-2021/constant-folding-module-aluXXX/actions/workflows/nodejs.yml)

## constant-folding
This module is an optimization for compiling time written in JS using the AST.
## Installation

npm i @alu0101317496/constant-folding

## Usage as executable:

npx cf <input-filename> <output-filename>

## Usage from code:

```javascript
const constantFolding = require('@alu0101317496/constant-folding');
//call the function
```

[The documentation of the function](https://github.com/ULL-ESIT-PL-2122/constant-folding-module-lucas-hernandez-abreu-alu0101317496).

## Examples
```
  npx cf input.js output.js
```

Salida:

```
a = 3;
```


## Author

alu0101317496 

alu0101317496@ull.edu.es

## Tests

