Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Compile javascript modules, optimize them with prepack and terser if `NODE_ENV` is `production`, and do more optimisations from this project. Reduce your code in production today!
Compile javascript modules, optimize them with prepack and terser if NODE_ENV
is production
, and do more optimisations from this project. Reduce your code in production today!
Further optimizations are coming up:
You can disable rollup or prepack (to disable terser, use the NODE_ENV
environment variable NODE_ENV=production ecmacomp ...
)
$ ecmacomp input.js [--norollup] [--noprepack] [--public dir] [--output file]
await require('ecmacomp')({ filename: 'input.js' }) // Or 'function code....'
ecmacomp
To hack on ecmacomp, clone this repository (git clone https://github.com/fabiosantoscode/ecmacomp
), cd
to it, run npm i
, write a test in the appropriate place, respect the lint (npm run lint
) and start hacking :)
This CLI command reveals the bytecode for a piece of javascript:
$ ecmacomp --parse input.js
You can use this bytecode as reference because it's the bytecode used in all the optimisations.
FAQs
Compile javascript modules, optimize them with prepack and terser if `NODE_ENV` is `production`, and do more optimisations from this project. Reduce your code in production today!
The npm package ecmacomp receives a total of 1 weekly downloads. As such, ecmacomp popularity was classified as not popular.
We found that ecmacomp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.