{"_id":"@alu0101325583/constant-folding","_rev":"5-6008d61e76957eb7a6a0bf52a8273f8b","name":"@alu0101325583/constant-folding","dist-tags":{"latest":"1.1.4"},"versions":{"1.1.0":{"name":"@alu0101325583/constant-folding","author":{"name":"alu0101325583","email":"alu0101325583@ull.edu.es"},"description":"Constant Folding javascript code","scripts":{"test":"mocha","prod-test":"cd ../constant-folding-production-test-alu0101325583 && npm test","cov":"nyc npm run test","full-cov":"npm run clean && npm i && npm run cov","clean":"rm -rf node_modules package-lock.json","doc":"blah blah"},"repository":{"type":"git","url":"git+https://github.com/ULL-ESIT-PL-2021/constant-folding-module-alu0101325583.git"},"keywords":["ULL","constant-folding","javascript"],"license":"Unlicense","dependencies":{"commander":"^7.1.0","escodegen":"^1.14.3","espree":"^9.3.1"},"version":"1.1.0","main":"src/constant-folding.js","bin":{"cf":"src/constant-folding-cli.js"},"devDependencies":{"chai":"latest","jison":"latest","mocha":"latest","nyc":"latest"},"gitHead":"46f06ea2054027220e18301918b447ad44e099ee","bugs":{"url":"https://github.com/ULL-ESIT-PL-2021/constant-folding-module-alu0101325583/issues"},"homepage":"https://github.com/ULL-ESIT-PL-2021/constant-folding-module-alu0101325583#readme","_id":"@alu0101325583/constant-folding@1.1.0","_nodeVersion":"17.5.0","_npmVersion":"8.5.0","dist":{"integrity":"sha512-sFfoIqVy4nm+vB0cccXPdDBlgJirJlivvSgf+v9oK1cLFNAA5+lkhI1QtEI++XZSk34Ym2HBYmDzX0mSM6HXag==","shasum":"f1f51a04ceadd0617de62b163e112d1391541673","tarball":"https://registry.npmjs.org/@alu0101325583/constant-folding/-/constant-folding-1.1.0.tgz","fileCount":11,"unpackedSize":6703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKN6HACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmre2Q//XlLZLzK08abXpwtFmF3DjIfZQ1gFy5Ryrqs+CJQKAtwKsVy8\r\nCDRc6/pbNK48Jh3UJn4Y3FxO1clqWjvAci7iUsXwA/VpXsEnaSOPppO/XVY8\r\n31t3/YOSmPAKm/axLd4andkoTmVNBExS/gZTbwIoQ/n4AZb8k1JHLx0dxe3/\r\nG2gWvG+KNBh85lAIAfmNubEWOxw+H2zSzQpM71h/9BZrb8BeQ+dlyd6v4qpL\r\n2R2y4aH5FJzrIU21sufBd1Q4gjV8SSxgi518L5FhLE+ruyYXl+vZHbvbC2Eb\r\nbVImtj5u5jVnHSft+p5Tm6fWEvdXlT1Md4Za5XxyumO8OJI4Kt0/peiG+0ew\r\nMHjtg2DS7/gbuS448Gie/3CQyPWphhgV3N596KlsonscAtFc8AX6wS5r/Rji\r\ngwTtkRYRR+YvPUq6dU33JbfTLU4h9z/D08DTaO7PwtMiZ4n11W3h+3FJhjR8\r\nh8uDdER6sxA7mC5WgWNRk8uX7qfcGyDrtCnD2SvAsbtE+5thdXwziv4b7PlJ\r\nrs2lIMX1EEzT7fl1ZZjCssyEDm8dk5/DSx7ZJjSWNeG/EUeReU138taHDOrq\r\nnAAlLCjL0n/QPnoZZeMoz/jT/ICbe/5dLR8ch15CJEfDBtr8r/DmpP8GD4j7\r\n3BGShjYg19YyNFbLWLrhUbnFG40JC9TDLPI=\r\n=lLiq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrEAON4elW2U2SI5fz2OGWzBeJA9Pcipip1db/YSkR7gIgLSY+SjJ0R/3fAHcJI7+szSKwRMFM1/vozYZwIHqEo24="}]},"_npmUser":{"name":"alu0101325583","email":"alu0101325583@ull.edu.es"},"directories":{},"maintainers":[{"name":"alu0101325583","email":"alu0101325583@ull.edu.es"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/constant-folding_1.1.0_1646845575387_0.24562468032454965"},"_hasShrinkwrap":false},"1.1.1":{"name":"@alu0101325583/constant-folding","author":{"name":"alu0101325583","email":"alu0101325583@ull.edu.es"},"description":"Constant Folding javascript code","scripts":{"test":"mocha","prod-test":"cd ../constant-folding-production-test-alu0101325583 && npm test","cov":"nyc npm run test","full-cov":"npm run clean && npm i && npm run cov","clean":"rm -rf node_modules package-lock.json","doc":"documentation build src/** -f html -o docs"},"repository":{"type":"git","url":"git+https://github.com/ULL-ESIT-PL-2021/constant-folding-module-alu0101325583.git"},"keywords":["ULL","constant-folding","javascript"],"license":"Unlicense","dependencies":{"commander":"^7.1.0","escodegen":"^1.14.3","espree":"^9.3.1"},"version":"1.1.1","main":"src/constant-folding.js","bin":{"cf":"src/constant-folding-cli.js"},"devDependencies":{"chai":"latest","jison":"latest","mocha":"latest","nyc":"latest"},"gitHead":"172813b2d537ce9a61de0b8868cdd394abc69d43","bugs":{"url":"https://github.com/ULL-ESIT-PL-2021/constant-folding-module-alu0101325583/issues"},"homepage":"https://github.com/ULL-ESIT-PL-2021/constant-folding-module-alu0101325583#readme","_id":"@alu0101325583/constant-folding@1.1.1","_nodeVersion":"17.5.0","_npmVersion":"8.5.0","dist":{"integrity":"sha512-dit/rxhuyNyyWnzw++r6pt4XsqiAtLypsLqugzouNx8YqwXkllOhr8HPuBRRtddZPyDamm82hf0YD6v5Mo3qiA==","shasum":"49f0e176652514491ccc96883509d8c69e57a6f3","tarball":"https://registry.npmjs.org/@alu0101325583/constant-folding/-/constant-folding-1.1.1.tgz","fileCount":36,"unpackedSize":1572678,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKQI2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqb2RAAoM1EPusIF+a/0UI8kPFCQsOGLV+/eli9LztJqM9sCL5/Ap8g\r\n5hB6PPdZ+wO3cfXE10Ju7/Y9mQIxCMiRvgMFdHfC8N3GUHeT72t3M7tbtQUG\r\nICp3LTkmaH2QkZ7ne1M5FZ9cqqLCo+ERtO4w54F2nHNts0KLpN2jY5P78LcL\r\niylGYx1vzuusKhn3q3taT9qgGlA2BODwElvGpwwKvGHJkRkDQfWxGJZYXoND\r\n8F/t/KfWNNcxHwtKcSDkW7FvXlU2ds9n8/wEFdzoqb9Mv2meWWLxufzfA76R\r\nvPzjEvmAYLjZbIg6qy3hVcm6IG4o0XEZMaPZLzxM6xkLthusISMvYjajbTzW\r\nJc0OJNiifl0CPd05WeuoyRxOM5v0+8fpAijhAy9gGf/KH2yOIOzhUIB02q7R\r\nNAj/aANqiEDe3Fdwad1S9v670h97tiof/V/3xHwrcDIebr/8W/X3PV/EHwtF\r\nZdr4L3X9RBtENZwHfWsPFe0t5LraLvr43/BigxfMcwzinvPVvCxdznTk8dBy\r\nMfqREXW8hLStmZNMfu5uUH54lAVYESGej/CEwmnRuLPiYJtG4tg2KtLzLy7y\r\n52opeRHHarEAwTjUdF9t0u2DHCo6vDAU17rLa7F+NU3p17l7rmd80DVfEiRS\r\nJ2mZAXRunI8TI139+lgtdFifciMJN3ybV4E=\r\n=b7tk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDA2kDdXRfuP3YH19ycDBSXawCDlRHl98fFB+elaIpZ2gIgch1wnvX5CLHR2wws/K76CAKUScXecDZrfLQVSXRS8uk="}]},"_npmUser":{"name":"alu0101325583","email":"alu0101325583@ull.edu.es"},"directories":{},"maintainers":[{"name":"alu0101325583","email":"alu0101325583@ull.edu.es"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/constant-folding_1.1.1_1646854710554_0.7040251981592651"},"_hasShrinkwrap":false},"1.1.2":{"name":"@alu0101325583/constant-folding","author":{"name":"alu0101325583","email":"alu0101325583@ull.edu.es"},"description":"Constant Folding javascript code","scripts":{"test":"mocha","prod-test":"cd ../constant-folding-production-test-alu0101325583 && npm test","cov":"nyc npm run test","full-cov":"npm run clean && npm i && npm run cov","clean":"rm -rf node_modules package-lock.json","doc":"documentation build src/** -f html -o docs"},"repository":{"type":"git","url":"git+https://github.com/ULL-ESIT-PL-2021/constant-folding-module-alu0101325583.git"},"keywords":["ULL","constant-folding","javascript"],"license":"Unlicense","dependencies":{"commander":"^7.1.0","escodegen":"^1.14.3","espree":"^9.3.1"},"version":"1.1.2","main":"src/constant-folding.js","bin":{"cf":"bin/constant-folding-cli.js"},"devDependencies":{"chai":"latest","jison":"latest","mocha":"latest","nyc":"latest"},"gitHead":"5c5d6db2c02c200a9786614d2798caef9e3d4c58","bugs":{"url":"https://github.com/ULL-ESIT-PL-2021/constant-folding-module-alu0101325583/issues"},"homepage":"https://github.com/ULL-ESIT-PL-2021/constant-folding-module-alu0101325583#readme","_id":"@alu0101325583/constant-folding@1.1.2","_nodeVersion":"17.5.0","_npmVersion":"8.5.0","dist":{"integrity":"sha512-5Vay2G1JBFxSDqM8Ca327Duin8PSA3o2piqya5qK3FtbO9YHB7/mG1x1pcPGsnX6oUYTblJlTYRqhBsZvG4evA==","shasum":"6303445e3868c412346fe5cd2d711501ac568c65","tarball":"https://registry.npmjs.org/@alu0101325583/constant-folding/-/constant-folding-1.1.2.tgz","fileCount":36,"unpackedSize":1572679,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKQRMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoSxw//bym/ofKGmtcBXxi4UxWrantstHKDNYPc34iaFFVvcSPZrYxt\r\niGtQ7Yau1kfXLqKbvBsGb7aQ9Yno77Wogpb46Z7kGgi+XgFcCQdWJeT+Nyuo\r\nGDAXifjcxO8eQRIpiMrvK9QFIUrh6L8w9/WuxjwIXOJ721/AZifI9EWmCbFs\r\n4UoompgAtJSyosEjU72jFp1rgK2dvV451z1XHL8LRsOcYKltCql0KDvfgrmo\r\nDtxHvcBzjLnzf7v0Vc84JBYoOG4E2EFLfPJ+1oGwoOsseRfh3HS1jmUV2bMD\r\nM2oJxhSGGCW+6dJcB+gpblZcD1cnvBF0qVYUEvQgNfnnu5E09QlDNw8te5Mo\r\nQ7lNeSPNY+VcYTkbpHcDBLtEYXQ0XO1HZ0Aarcqxxn8DXcyQ9BiUkL8B0qMN\r\nhy4kJt4Puh/vBR8JMz1s64hWb0Rnl59BW15hoIEeixps0tFNJZ+9+AyoPBo5\r\nk20ENHjGVFEydSHEPYkIxyLJvcYDiU5Qwcg8AH8vgRhiF9oO1npnAnjV4+km\r\nNYW8svhZ8WyUAthlAaJbmTfiYKh/c2rZ8ykfZ0u080KRjHoPAvKQdUiCpRPz\r\nyDHcmc7HrJRgeglgSRyKcQo83pD7wc9uwGyJTQrj6ZqAoOJuX7Swp4GuUta6\r\ntpxLf79q6CqZeLX/s81WlUDCjnAwwV36K6o=\r\n=bpLW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHcT+D+6w8vZYtn1Oe9RDUizfvL2WBuzjvWp4JhU9mOaAiBXGBKc5n91QkUtUvOj3WsPQ5O/s/mfBT04B1IX3AdI/A=="}]},"_npmUser":{"name":"alu0101325583","email":"alu0101325583@ull.edu.es"},"directories":{},"maintainers":[{"name":"alu0101325583","email":"alu0101325583@ull.edu.es"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/constant-folding_1.1.2_1646855244049_0.1828345810308014"},"_hasShrinkwrap":false},"1.1.3":{"name":"@alu0101325583/constant-folding","author":{"name":"alu0101325583","email":"alu0101325583@ull.edu.es"},"description":"Constant Folding javascript code","scripts":{"test":"mocha","prod-test":"cd ../constant-folding-production-test-alu0101325583 && npm test","cov":"nyc npm run test","full-cov":"npm run clean && npm i && npm run cov","clean":"rm -rf node_modules package-lock.json","doc":"documentation build src/** -f html -o docs"},"repository":{"type":"git","url":"git+https://github.com/ULL-ESIT-PL-2021/constant-folding-module-alu0101325583.git"},"keywords":["ULL","constant-folding","javascript"],"license":"Unlicense","dependencies":{"commander":"^7.1.0","escodegen":"^1.14.3","espree":"^9.3.1"},"version":"1.1.3","main":"src/constant-folding.js","bin":{"cf":"bin/constant-folding-cli.js"},"devDependencies":{"chai":"latest","jison":"latest","mocha":"latest","nyc":"latest"},"gitHead":"d5129ca7409ec5b4e0853310f35e4f4025a7d48b","bugs":{"url":"https://github.com/ULL-ESIT-PL-2021/constant-folding-module-alu0101325583/issues"},"homepage":"https://github.com/ULL-ESIT-PL-2021/constant-folding-module-alu0101325583#readme","_id":"@alu0101325583/constant-folding@1.1.3","_nodeVersion":"17.5.0","_npmVersion":"8.5.0","dist":{"integrity":"sha512-a+h2Y90iLVG6/Mees4ydC7RJUzqEqKVvEaow+5Kdgui/WFnpbzL5PZdX8GaZnf9uzfcLbJp8uGBOY1r0hw7M4w==","shasum":"1267d0a733dc45e4ce787cf6c5f034e144f9577f","tarball":"https://registry.npmjs.org/@alu0101325583/constant-folding/-/constant-folding-1.1.3.tgz","fileCount":36,"unpackedSize":1572681,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKQcwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmolqA//QI/FBKRH7+tqLXIesvDAWl5bLxF9OuvwmqwVBcsMyPJ8n444\r\nD3Rj9EIjNqarUYltolJ43dF170404smlYBCvWd/XtqYXz3884mYx8cCsxhxG\r\nsglVzcqI01NfKz3sf0Fdxv8FACtEH4NCZWJNNS2BAvCW0PeiVL23EqYgRW9p\r\nSYAZz2yWAYaqsB+usl91uDn8hvGNN2G1opnaArf4FfMFkgVvnk7wnqeyVne8\r\n0jKtMMxoDvLGSFd182I3rfpFTeoprJNllpT2ABEKK5iww3GtEnd3lELjKa9a\r\nkd4rwh0RdojSFHD51zXWpuAc5Gmc8htj6oBozDrpXbjU9vMF5wWDeM9bZPcE\r\nNFBiABkPBb028mRsHMUSwBiMkyGWEAlzUeFvyQmon7fbGOUEkcBbLV4QbKkl\r\n2JOBNvpN1zYtYAKbGyCH5MxAjKT6rI5qaUMzF8SlpFVFyot85rehuSoBD4H/\r\nTX52aQ7iQ2ivNIjmDKh8hn5uiX5LdzDKsq/ZeMUVkR0n2jdNVOU5OZcAwbaN\r\n06EpUhW9b7g82F2LxPJ/PSHOvPVja2uxg0F0eVGMygNWEC74cq6Q8DEm1E2M\r\nhKseqUXifTc0NOiXnDhK+p3NQWtysxNHEyugNWALsOg1A6wDveEzb4gs1isF\r\nIUsKh5S3xxAfIUr2MvLS3CVLq+3Spucl1Os=\r\n=4KMS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcUaJ7rBo7P9gLWFxIbzV0I3vrvEVh4glsgxWeAu7I5gIhALzqeLeuclbJwYajIgBbUaqIUQFLHb/MhWG22coc395c"}]},"_npmUser":{"name":"alu0101325583","email":"alu0101325583@ull.edu.es"},"directories":{},"maintainers":[{"name":"alu0101325583","email":"alu0101325583@ull.edu.es"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/constant-folding_1.1.3_1646855984733_0.8649879122575133"},"_hasShrinkwrap":false},"1.1.4":{"name":"@alu0101325583/constant-folding","author":{"name":"alu0101325583","email":"alu0101325583@ull.edu.es"},"description":"Constant Folding javascript code","scripts":{"test":"mocha","prod-test":"cd ../constant-folding-production-test-alu0101325583 && npm test","cov":"nyc npm run test","full-cov":"npm run clean && npm i && npm run cov","webcoverage":"npx nyc --reporter=html --reporter=text --report-dir coverage mocha","clean":"rm -rf node_modules package-lock.json","doc":"documentation build src/** -f html -o docs"},"repository":{"type":"git","url":"git+https://github.com/ULL-ESIT-PL-2021/constant-folding-module-alu0101325583.git"},"keywords":["ULL","constant-folding","javascript"],"license":"Unlicense","dependencies":{"commander":"^7.1.0","escodegen":"^1.14.3","espree":"^9.3.1"},"version":"1.1.4","main":"src/constant-folding.js","bin":{"cf":"bin/constant-folding-cli.js"},"devDependencies":{"chai":"latest","jison":"latest","mocha":"latest","nyc":"latest"},"gitHead":"3fd7c07b91254fcdeecf2102698ec7ca0e03a56f","bugs":{"url":"https://github.com/ULL-ESIT-PL-2021/constant-folding-module-alu0101325583/issues"},"homepage":"https://github.com/ULL-ESIT-PL-2021/constant-folding-module-alu0101325583#readme","_id":"@alu0101325583/constant-folding@1.1.4","_nodeVersion":"17.5.0","_npmVersion":"8.5.0","dist":{"integrity":"sha512-MgU5DaJSsLMBso/rG+8vVHH/TU6TBcz1XV/mO7zWNvOwSNw52VAn2QNNcivgpt7doLs9TcMDgcG6Eeom86v2XQ==","shasum":"d37e0e51f3e1d0baba9946f076e2ad629473cf32","tarball":"https://registry.npmjs.org/@alu0101325583/constant-folding/-/constant-folding-1.1.4.tgz","fileCount":36,"unpackedSize":1573248,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKUGMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo/gg//USbuPHN25Rgod/r9DrEROuv1FqrKqb+YT+ouBkMvz+gmvK3l\r\n2H/dwffeke2JLy9EZbX+amA63YS378cQTWsA57otsHHEES4ugiPRmAxvPM4Y\r\nUvs5qEIpQAEsDsysmHgdKpjxix3iw8CTg5ZYVK50c0SwVOJRR9yJnjPzbLS2\r\nI9zXmM3BffXTzgPVPcBkIq4yS9f1+yYP/TQR6EE8CY9aDruarMOLvIxNS2wJ\r\nO8+SRHUdq/qD2uQwYOU0Hg/z/obPj0cAVmejJtij4nQpdLWXXBHVEBmFA5Y7\r\n2vrBoxjH6kXZXFpDrXeeNUxYTTtrtBaEuB8jcaBAw159kU+7bDtbV0fIdlxY\r\nRcv3T2UCJ32b6WXQr43EaG7I7DcplgStMcYOabXnouYxzjXnYRu9osVejyyx\r\n0gHSaazq2E/D/7zKAokWMEPevQXPgI8TjnXM6v6CNlmqcbn8v3o7NaIhcesM\r\nRWmKzHAx07SUABl3vfagDtui9/vybqWLhhNNyRcGyngrKESbsUxHpxsgLITd\r\nscB39p7Kv/DxRaKkGpquGCS9XGXO5tu8e8AXKnnIcu5/AHHB/Fnq0XRHqFJd\r\nrtrB4HP1CJS+VTIci0Ab6lx63KiT6dElcHWkoTamQhL7mYdQ63Fy6kpt2hnV\r\nHZHUFO/ZusEggfEivnfZ8uKiqdecZG7LZPo=\r\n=I1o1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCud/olrEUJZAZmaBrBXtZ2rBuBuVc6NiR3Oq7R0vd9+gIgPc/r390J3j76mKAx9VnBPGi5fgvWCeNKPVEO5MqFleQ="}]},"_npmUser":{"name":"alu0101325583","email":"alu0101325583@ull.edu.es"},"directories":{},"maintainers":[{"name":"alu0101325583","email":"alu0101325583@ull.edu.es"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/constant-folding_1.1.4_1646870924032_0.6268915456481674"},"_hasShrinkwrap":false}},"time":{"created":"2022-03-09T17:06:15.322Z","1.1.0":"2022-03-09T17:06:15.539Z","modified":"2022-04-04T13:41:13.525Z","1.1.1":"2022-03-09T19:38:30.772Z","1.1.2":"2022-03-09T19:47:24.255Z","1.1.3":"2022-03-09T19:59:44.999Z","1.1.4":"2022-03-10T00:08:44.299Z"},"maintainers":[{"name":"alu0101325583","email":"alu0101325583@ull.edu.es"}],"description":"Constant Folding javascript code","homepage":"https://github.com/ULL-ESIT-PL-2021/constant-folding-module-alu0101325583#readme","keywords":["ULL","constant-folding","javascript"],"repository":{"type":"git","url":"git+https://github.com/ULL-ESIT-PL-2021/constant-folding-module-alu0101325583.git"},"author":{"name":"alu0101325583","email":"alu0101325583@ull.edu.es"},"bugs":{"url":"https://github.com/ULL-ESIT-PL-2021/constant-folding-module-alu0101325583/issues"},"license":"Unlicense","readme":"[![npm version](https://badge.fury.io/js/%40aluXXX%2Fconstant-folding.svg)](https://badge.fury.io/js/%40aluXXX%2Fconstant-folding)\n[![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)\n\n## constant-folding\n\n## Installation\n\n```bash\nnpm install @alu0101325583/constant-folding\n```\n\n## Usage as executable:\n\n```bash\ncf input.js output.js\n```\n\n## Usage from code:\n\n```javascript\nconst constantFolding = require('constant-folding');\n//call the function\n```\n\n[The documentation of the function](https://ull-esit-pl-2021.github.io/constant-folding-module-alu0101325583/).\n\n## Examples\n\n```js\nlet refactored = constantFolding(input);\n```\n\n## Author\n\nalu0101325583 Juan García Santos\n\n## Tests\n\n```sh\nnpm test\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n#### Table of Contents\n\n*   [constantFolding](#constantfolding)\n    *   [Parameters](#parameters)\n*   [replaceByLiteral](#replacebyliteral)\n    *   [Parameters](#parameters-1)\n\n### constantFolding\n\nA function that given a certain code, builds its ast tree.\nThen, traverses through it, applaying constant folding on valid nodes\n\n#### Parameters\n\n*   `code` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** A string that contains the input code\n    generates the ast from the code, applys constant folding then generates code using the ast and escodegen.\n\nReturns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** Returns the simplified code\n\n### replaceByLiteral\n\nA function that converts a given subtree known to be constant\ninto a simplified literal node\n\n#### Parameters\n\n*   `n` **[Node](https://developer.mozilla.org/docs/Web/API/Node/nextSibling)** the root node of the subtree\n    evaluates the subtree and transforms it into a simplified literal node.\n\n","readmeFilename":"README.md"}