UNPKG

@ungap/event

Version:

An Event polyfill for legacy browsers.

44 lines (43 loc) 1.41 kB
{ "name": "@ungap/event", "version": "0.2.2", "description": "An Event polyfill for legacy browsers.", "main": "./cjs/index.js", "module": "./esm/index.js", "unpkg": "min.js", "scripts": { "build": "npm run cjs && npm run esm && npm run min && npm run test && npm run size", "cjs": "cat index.js | sed 's/var self.*/var self = {};/' > cjs/index.js && echo 'module.exports = self.Event;' >> cjs/index.js", "esm": "cat index.js | sed 's/var self.*/var self = {};/' > esm/index.js && echo 'export default self.Event;' >> esm/index.js", "min": "uglifyjs index.js --support-ie8 --comments=/^!/ -c -m -o min.js", "size": "cat index.js | wc -c && cat min.js | wc -c && gzip -c9 min.js | wc -c && cat min.js | brotli | wc -c", "coveralls": "nyc report --reporter=text-lcov | coveralls", "test": "nyc node test/index.js" }, "keywords": [ "Event", "polyfill", "legacy", "ungap" ], "author": "Andrea Giammarchi", "license": "ISC", "devDependencies": { "coveralls": "^3.1.0", "nyc": "^15.1.0", "uglify-js": "^3.9.4" }, "repository": { "type": "git", "url": "git+https://github.com/ungap/event.git" }, "bugs": { "url": "https://github.com/ungap/event/issues" }, "homepage": "https://github.com/ungap/event#readme", "type": "module", "exports": { "import": "./esm/index.js", "default": "./cjs/index.js" } }