Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

emittery

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emittery - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0

legacy.js

109

package.json
{
"name": "emittery",
"version": "0.1.2",
"description": "Simple and modern async event emitter",
"license": "MIT",
"repository": "sindresorhus/emittery",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=8"
},
"scripts": {
"test": "xo && ava"
},
"files": [
"index.js"
],
"keywords": [
"event",
"emitter",
"eventemitter",
"events",
"async",
"emit",
"on",
"once",
"off",
"listener",
"subscribe",
"unsubscribe",
"pubsub",
"tiny",
"addlistener",
"addeventlistener",
"dispatch",
"dispatcher",
"observer",
"trigger",
"await",
"promise"
],
"devDependencies": {
"ava": "*",
"delay": "^2.0.0",
"xo": "*"
}
"name": "emittery",
"version": "0.2.0",
"description": "Simple and modern async event emitter",
"license": "MIT",
"repository": "sindresorhus/emittery",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=4"
},
"scripts": {
"build": "babel --out-file=legacy.js index.js",
"prepack": "npm install && npm run build",
"test": "xo && ava"
},
"files": [
"index.js",
"legacy.js"
],
"keywords": [
"event",
"emitter",
"eventemitter",
"events",
"async",
"emit",
"on",
"once",
"off",
"listener",
"subscribe",
"unsubscribe",
"pubsub",
"tiny",
"addlistener",
"addeventlistener",
"dispatch",
"dispatcher",
"observer",
"trigger",
"await",
"promise"
],
"devDependencies": {
"ava": "*",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-plugin-transform-async-to-generator": "^6.24.1",
"babel-plugin-transform-es2015-spread": "^6.22.0",
"delay": "^2.0.0",
"xo": "*"
},
"babel": {
"plugins": [
"transform-async-to-generator",
"transform-es2015-spread"
]
}
}

@@ -33,3 +33,7 @@ # <img src="media/header.png" width="1000">

### Node.js 4 and 6
The above only works in Node.js 8 or newer. For older Node.js versions you can use `require('emittery/legacy')`.
## API

@@ -82,3 +86,3 @@

#### onAll(listener)
#### onAny(listener)

@@ -85,0 +89,0 @@ Subscribe to be notified about any event.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc