Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
aion-web3-core-promievent
Advanced tools
This package extends eventEmitters with promises to allow chaining as well as multiple final states of a function.
This is a sub package of aion_web3.
This is the PromiEvent package to return a EventEmitter mixed with a Promise to allow multiple final states as well as chaining.
Please read the documentation for more information.
npm install aion-web3-core-promievent
// in node.js
var Web3PromiEvent = require('aion-web3-core-promievent');
var myFunc = function(){
var promiEvent = Web3PromiEvent();
setTimeout(function() {
promiEvent.eventEmitter.emit('done', 'Hello!');
promiEvent.resolve('Hello!');
}, 10);
return promiEvent.eventEmitter;
};
// and run it
myFunc()
.then(console.log);
.on('done', console.log);
FAQs
This package extends eventEmitters with promises to allow chaining as well as multiple final states of a function.
The npm package aion-web3-core-promievent receives a total of 5 weekly downloads. As such, aion-web3-core-promievent popularity was classified as not popular.
We found that aion-web3-core-promievent demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.