open-index/open-npm huggingface dataset:
npm package: @hummus-1/ast-types
Description: Ast-types spread operator traduction to ECMA-5
Author: alu0101353340
Latest version: 1.0.0

[![CI for constant-folding](https://github.com/ULL-ESIT-PL-2122/ast-types-daniel-garcia-hernandez-alu0101353340/actions/workflows/nodejs.yml/badge.svg)](https://github.com/ULL-ESIT-PL-2122/ast-types-daniel-garcia-hernandez-alu0101353340/actions/workflows/nodejs.yml)

## ast-types

## Installation
npm install @hummus-1/ast-types

## Usage as executable:
spread input_file output_file

## Usage from code:

```javascript
const at = require('ast-types');
//call the function with the string containing the code
```

## Examples
```javascript
hoid@Urithiru:~/Uni/Tercero/PL/ast-types-daniel-garcia-hernandez-alu0101353340$ spread input.txt output.js
File read succesfully
Output written succesfully in output.js
```

## Author

alu0101353340 - Daniel García Hernández - Hummus-1

## Tests
```bash
hoid@Urithiru:~/Uni/Tercero/PL/ast-types-daniel-garcia-hernandez-alu0101353340$ npm run cov

> @hummus-1/ast-types@1.0.0 cov
> jest --coverage

 PASS  test/test.js
  Works correctly with the spread operator as argument
    ✓ With a function declaration (14 ms)
    ✓ With a function expression (3 ms)
    ✓ With an arrow function (2 ms)
  Works correctly with the spread operator inside an array
    ✓ When declaring a variable (2 ms)
    ✓ As a constant variable (2 ms)
    ✓ Inside another methods and an arrow function (2 ms)

--------------|---------|----------|---------|---------|-------------------
File          | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
--------------|---------|----------|---------|---------|-------------------
All files     |     100 |      100 |     100 |     100 |                   
 ast-types.js |     100 |      100 |     100 |     100 |                   
--------------|---------|----------|---------|---------|-------------------
Test Suites: 1 passed, 1 total
Tests:       6 passed, 6 total
Snapshots:   0 total
Time:        0.274 s, estimated 1 s
Ran all test suites.
```
npm package: @hummus-1/constant-folding
Description: Constant Folding javascript code
Author: alu0101353340
Latest version: 1.1.1

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

## constant-folding

## Installation
npm install @hummus-1/constant-folding

## Usage as executable:
cf input_file output_file

The output file must be created before running the executable

## Usage from code:

```javascript
const constantFolding = require('constant-folding');
//call the function with the string containing the code
```

[The documentation of the function](https://ull-esit-pl-2021.github.io/constant-folding-module-aluXXX/).

## Examples
```javascript
hoid@Urithiru:~/Uni/Tercero/PL/Constant Folding/constant-folding-module$ cf input.txt output
File read succesfully
Output written succesfully in output.js
```

## Author

alu0101353340

## Tests
```bash
npm test

 PASS  test/test.js
  Normal operations
    ✓ Works correctly with product and declaration (6 ms)
    ✓ Works correctly with division and declaration (1 ms)
    ✓ Works correctly with substraction (1 ms)
  Array operations
    Can access array position correctly
      ✓ With positive values (1 ms)
      ✓ With negative values (1 ms)
      ✓ With text literals (1 ms)
      ✓ With an operation inside
    Length method
      ✓ With a normal array (1 ms)
      ✓ With an empty array (1 ms)
    Array methods that return a literal
      ✓ Works with join methods and no arguments (1 ms)
      ✓ Works with join methods with an argument (1 ms)
      ✓ Works with shift method (1 ms)
```