UNPKG

@ungap/event-target

Version:
45 lines (44 loc) 1.47 kB
{ "name": "@ungap/event-target", "version": "0.2.4", "description": "An EventTarget polyfill", "main": "./cjs/index.js", "module": "./esm/index.js", "types": "./index.d.ts", "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.EventTarget;' >> cjs/index.js", "esm": "cat index.js | sed 's/var self.*/var self = {};/' > esm/index.js && echo 'export default self.EventTarget;' >> esm/index.js", "min": "terser index.js --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": [ "EventTarget", "polyfill", "ungap" ], "author": "Andrea Giammarchi", "license": "ISC", "devDependencies": { "coveralls": "^3.1.1", "nyc": "^15.1.0", "terser": "^5.7.1" }, "repository": { "type": "git", "url": "git+https://github.com/ungap/event-target.git" }, "bugs": { "url": "https://github.com/ungap/event-target/issues" }, "homepage": "https://github.com/ungap/event-target#readme", "type": "module", "exports": { "types": "./index.d.ts", "import": "./esm/index.js", "default": "./cjs/index.js" } }