Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Event emitter for the browser.
npm i emanate --save
The event emitter class is the base class that provides event dispatching. It is designed to mimic the node event emitter.
Adds a listener to the end of the listeners array for the specified event.
Returns emitter, so calls can be chained.
Aliased via the on
method.
Remove a listener from the listener array for the specified event. Caution: changes array indices in the listener array behind the listener.
Returns emitter, so calls can be chained.
Aliased via the off
method.
Adds a one time listener for the event. This listener is invoked only the next time the event is fired, after which it is removed.
Returns emitter, so calls can be chained.
Removes all listeners, or those of the specified event.
Returns emitter, so calls can be chained.
Returns an array of listeners for the specified event.
Execute each of the listeners in order with the supplied arguments.
Returns true if event had listeners, false otherwise.
Developer workflow is via gulp but should be executed as npm
scripts to enable shell execution where necessary.
Run the headless test suite using phantomjs:
npm test
To run the tests in a browser context open test/index.html or use the server npm start
.
Serve the test files from a web server with:
npm start
Run the test suite and generate code coverage:
npm run cover
Run the source tree through eslint:
npm run lint
Remove generated files:
npm run clean
Compile the test specifications:
npm run spec
Generate instrumented code from lib
in instrument
:
npm run instrument
Generate the project readme file (requires mdp):
npm run readme
Everything is MIT. Read the license if you feel inclined.
Generated by mdp(1).
FAQs
Event emitter for the browser
The npm package emanate receives a total of 2 weekly downloads. As such, emanate popularity was classified as not popular.
We found that emanate demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.