{"_id":"rollup-plugin-node-polyfills","_rev":"3513201","name":"rollup-plugin-node-polyfills","description":"rollup-plugin-node-polyfills ===","dist-tags":{"latest":"0.2.1"},"maintainers":[{"name":"manucorporat","email":""}],"time":{"modified":"2024-08-27T20:32:25.000Z","created":"2019-06-06T16:40:56.671Z","0.2.1":"2019-06-14T10:29:56.411Z","0.2.0":"2019-06-12T14:24:35.921Z","0.1.2":"2019-06-07T11:06:58.175Z","0.1.1":"2019-06-06T16:45:02.709Z","0.1.0":"2019-06-06T16:40:56.671Z"},"users":{},"author":"","repository":{"type":"git","url":"git+ssh://git@github.com/ionic-team/rollup-plugin-node-polyfills.git"},"versions":{"0.2.1":{"name":"rollup-plugin-node-polyfills","version":"0.2.1","main":"dist/index.js","module":"dist/index.mjs","types":"dist/types/index.d.ts","scripts":{"pretest":"npm run build","test":"mocha","prebuild":"rm -rf dist && mkdir dist","build":"npm run build:constants && npm run build:deps && npm run build:bundlers","build:bundlers":"tsc -p . && rollup -c","build:deps":"node scripts/build-polyfills.js","build:constants":"node scripts/build-constants.js","release":"np --no-yarn --no-release-draft","browser-test":"serve browser-test/dist","prebrowser-test":"npm run build && node ./browser-test/index.js"},"keywords":["rollup-plugin"],"author":"","license":"MIT","dependencies":{"rollup-plugin-inject":"^3.0.0"},"devDependencies":{"browserify-fs":"^1.0.0","buffer-es6":"^4.9.2","crypto-browserify":"^3.11.0","debug":"^4.1.1","mocha":"^6.1.4","np":"^5.0.3","process-es6":"^0.11.2","rollup":"^1.15.4","rollup-plugin-commonjs":"^10.0.0","rollup-plugin-json":"^4.0.0","rollup-plugin-license":"^0.9.0","rollup-plugin-node-resolve":"^5.0.2","serve":"^11.0.1","typescript":"^3.5.2"},"repository":{"type":"git","url":"git+ssh://git@github.com/ionic-team/rollup-plugin-node-polyfills.git"},"gitHead":"9b5fe1a9cafffd4871e6d65613ed224f807ea251","description":"rollup-plugin-node-polyfills ===","bugs":{"url":"https://github.com/ionic-team/rollup-plugin-node-polyfills/issues"},"homepage":"https://github.com/ionic-team/rollup-plugin-node-polyfills#readme","_id":"rollup-plugin-node-polyfills@0.2.1","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"shasum":"53092a2744837164d5b8a28812ba5f3ff61109fd","size":369824,"noattachment":false,"key":"/rollup-plugin-node-polyfills/-/rollup-plugin-node-polyfills-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rollup-plugin-node-polyfills/download/rollup-plugin-node-polyfills-0.2.1.tgz"},"maintainers":[{"name":"manucorporat","email":""}],"_npmUser":{"name":"manucorporat","email":"manu.mtza@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-node-polyfills_0.2.1_1560508196165_0.7004419608226595"},"_hasShrinkwrap":false,"publish_time":1560508196411,"_cnpm_publish_time":1560508196411,"_cnpmcore_publish_time":"2021-12-16T11:17:55.567Z"},"0.2.0":{"name":"rollup-plugin-node-polyfills","version":"0.2.0","main":"dist/index.js","module":"dist/index.mjs","types":"dist/types/index.d.ts","scripts":{"pretest":"npm run build","test":"mocha","prebuild":"rm -rf dist && mkdir dist","build":"npm run build:constants && npm run build:deps && npm run build:bundlers","build:bundlers":"tsc -p . && rollup -c","build:deps":"node scripts/build-polyfills.js","build:constants":"node scripts/build-constants.js","release":"np --no-yarn --no-release-draft","browser-test":"serve browser-test/dist","prebrowser-test":"npm run build && node ./browser-test/index.js"},"keywords":["rollup-plugin"],"author":"","license":"MIT","dependencies":{"rollup-plugin-inject":"^3.0.0"},"devDependencies":{"browserify-fs":"^1.0.0","buffer-es6":"^4.9.2","crypto-browserify":"^3.11.0","debug":"^4.1.1","mocha":"^6.1.4","np":"^5.0.3","process-es6":"^0.11.2","rollup":"^1.15.1","rollup-plugin-commonjs":"^10.0.0","rollup-plugin-json":"^4.0.0","rollup-plugin-license":"^0.9.0","rollup-plugin-node-resolve":"^5.0.1","serve":"^11.0.1","typescript":"^3.5.1"},"repository":{"type":"git","url":"git+ssh://git@github.com/ionic-team/rollup-plugin-node-polyfills.git"},"gitHead":"6ec24955b44b9bd219177a36df4b9e5171c57273","description":"rollup-plugin-node-polyfills ===","bugs":{"url":"https://github.com/ionic-team/rollup-plugin-node-polyfills/issues"},"homepage":"https://github.com/ionic-team/rollup-plugin-node-polyfills#readme","_id":"rollup-plugin-node-polyfills@0.2.0","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"shasum":"0914f4effa969f70860f450531a0bf9b57467e53","size":369799,"noattachment":false,"key":"/rollup-plugin-node-polyfills/-/rollup-plugin-node-polyfills-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rollup-plugin-node-polyfills/download/rollup-plugin-node-polyfills-0.2.0.tgz"},"maintainers":[{"name":"manucorporat","email":""}],"_npmUser":{"name":"manucorporat","email":"manu.mtza@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-node-polyfills_0.2.0_1560349475711_0.6698661053891066"},"_hasShrinkwrap":false,"publish_time":1560349475921,"_cnpm_publish_time":1560349475921,"_cnpmcore_publish_time":"2021-12-16T11:17:56.807Z"},"0.1.2":{"name":"rollup-plugin-node-polyfills","version":"0.1.2","main":"dist/index.js","module":"dist/index.mjs","types":"dist/types/index.d.ts","scripts":{"pretest":"npm run build","test":"mocha","prebuild":"rm -rf dist && mkdir dist","build":"npm run build:constants && npm run build:deps && npm run build:bundlers","build:bundlers":"tsc -p . && rollup -c","build:deps":"node scripts/build-polyfills.js","build:constants":"node scripts/build-constants.js","release":"np --no-yarn --no-release-draft","browser-test":"serve browser-test/dist","prebrowser-test":"npm run build && node ./browser-test/index.js"},"keywords":["rollup-plugin"],"author":"","license":"MIT","dependencies":{"rollup-plugin-inject":"^2.2.0"},"devDependencies":{"browserify-fs":"^1.0.0","buffer-es6":"^4.9.2","crypto-browserify":"^3.11.0","debug":"^4.1.1","mocha":"^6.1.4","np":"^5.0.3","process-es6":"^0.11.2","rollup":"1.14.2","rollup-plugin-commonjs":"^10.0.0","rollup-plugin-json":"^4.0.0","rollup-plugin-node-resolve":"^5.0.1","serve":"^11.0.1","typescript":"^3.5.1"},"repository":{"type":"git","url":"git+ssh://git@github.com/ionic-team/rollup-plugin-node-polyfills.git"},"gitHead":"4dc85f50072934bf9d633c6f80fc32de15df9849","description":"rollup-plugin-node-polyfills ===","bugs":{"url":"https://github.com/ionic-team/rollup-plugin-node-polyfills/issues"},"homepage":"https://github.com/ionic-team/rollup-plugin-node-polyfills#readme","_id":"rollup-plugin-node-polyfills@0.1.2","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"shasum":"6e81cd0e64284eb715b9a0771f3eabc157396457","size":364402,"noattachment":false,"key":"/rollup-plugin-node-polyfills/-/rollup-plugin-node-polyfills-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/rollup-plugin-node-polyfills/download/rollup-plugin-node-polyfills-0.1.2.tgz"},"maintainers":[{"name":"manucorporat","email":""}],"_npmUser":{"name":"manucorporat","email":"manu.mtza@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-node-polyfills_0.1.2_1559905618037_0.468274030643433"},"_hasShrinkwrap":false,"publish_time":1559905618175,"_cnpm_publish_time":1559905618175,"_cnpmcore_publish_time":"2021-12-16T11:17:58.086Z"},"0.1.1":{"name":"rollup-plugin-node-polyfills","version":"0.1.1","main":"dist/index.js","module":"dist/index.mjs","types":"dist/types/index.d.ts","scripts":{"pretest":"npm run build","test":"mocha","prebuild":"rm -rf dist && mkdir dist","build":"npm run build:constants && npm run build:deps && npm run build:bundlers","build:bundlers":"tsc -p . && rollup -c","build:deps":"node scripts/build-polyfills.js","build:constants":"node scripts/build-constants.js","release":"np --no-yarn --no-release-draft","browser-test":"serve browser-test/dist","prebrowser-test":"npm run build && node ./browser-test/index.js"},"keywords":["rollup-plugin"],"author":"","license":"MIT","dependencies":{"rollup-plugin-inject":"^2.2.0"},"devDependencies":{"browserify-fs":"^1.0.0","buffer-es6":"^4.9.2","crypto-browserify":"^3.11.0","debug":"^4.1.1","mocha":"^6.1.4","np":"^5.0.3","process-es6":"^0.11.2","rollup":"1.14.2","rollup-plugin-commonjs":"^10.0.0","rollup-plugin-json":"^4.0.0","rollup-plugin-node-resolve":"^5.0.1","serve":"^11.0.1","typescript":"^3.5.1"},"repository":{"type":"git","url":"git+ssh://git@github.com/ionic-team/rollup-plugin-node-polyfills.git"},"gitHead":"7e41d9438d08e3ae5b58341cbb30b7565b728109","description":"rollup-plugin-node-polyfills ===","bugs":{"url":"https://github.com/ionic-team/rollup-plugin-node-polyfills/issues"},"homepage":"https://github.com/ionic-team/rollup-plugin-node-polyfills#readme","_id":"rollup-plugin-node-polyfills@0.1.1","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"shasum":"f728c50268c8c9678344f45b644a93936d02c6ec","size":364232,"noattachment":false,"key":"/rollup-plugin-node-polyfills/-/rollup-plugin-node-polyfills-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rollup-plugin-node-polyfills/download/rollup-plugin-node-polyfills-0.1.1.tgz"},"maintainers":[{"name":"manucorporat","email":""}],"_npmUser":{"name":"manucorporat","email":"manu.mtza@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-node-polyfills_0.1.1_1559839502487_0.9348380736458897"},"_hasShrinkwrap":false,"publish_time":1559839502709,"_cnpm_publish_time":1559839502709,"_cnpmcore_publish_time":"2021-12-16T11:17:59.193Z"},"0.1.0":{"name":"rollup-plugin-node-polyfills","version":"0.1.0","main":"dist/index.js","module":"dist/index.mjs","types":"dist/types/index.d.ts","scripts":{"pretest":"npm run build","test":"mocha","prebuild":"rm -rf dist && mkdir dist","build":"npm run build:constants && npm run build:deps && npm run build:bundlers","build:bundlers":"tsc -p . && rollup -c","build:deps":"node scripts/build-polyfills.js","build:constants":"node scripts/build-constants.js","version":"npm run build","release":"np","browser-test":"serve browser-test/dist","prebrowser-test":"npm run build && node ./browser-test/index.js"},"keywords":["rollup-plugin"],"author":"","license":"MIT","dependencies":{"rollup-plugin-inject":"^2.2.0"},"devDependencies":{"browserify-fs":"^1.0.0","buffer-es6":"^4.9.2","crypto-browserify":"^3.11.0","debug":"^4.1.1","mocha":"^6.1.4","np":"^5.0.3","process-es6":"^0.11.2","rollup":"1.14.2","rollup-plugin-commonjs":"^10.0.0","rollup-plugin-json":"^4.0.0","rollup-plugin-node-resolve":"^5.0.1","serve":"^11.0.1","typescript":"^3.5.1"},"repository":{"type":"git","url":"git+ssh://git@github.com/ionic-team/rollup-plugin-node-polyfills.git"},"gitHead":"2de924d78c9780028d924d8b36c755cfe9917dac","description":"rollup-plugin-node-polyfills ===","bugs":{"url":"https://github.com/ionic-team/rollup-plugin-node-polyfills/issues"},"homepage":"https://github.com/ionic-team/rollup-plugin-node-polyfills#readme","_id":"rollup-plugin-node-polyfills@0.1.0","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"shasum":"27fb67d82494fa9fb242010f1de3e9f4dd5f229c","size":364221,"noattachment":false,"key":"/rollup-plugin-node-polyfills/-/rollup-plugin-node-polyfills-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rollup-plugin-node-polyfills/download/rollup-plugin-node-polyfills-0.1.0.tgz"},"maintainers":[{"name":"manucorporat","email":""}],"_npmUser":{"name":"manucorporat","email":"manu.mtza@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-node-polyfills_0.1.0_1559839256492_0.7968531663222533"},"_hasShrinkwrap":false,"publish_time":1559839256671,"_cnpm_publish_time":1559839256671,"_cnpmcore_publish_time":"2021-12-16T11:18:00.570Z"}},"readme":"rollup-plugin-node-polyfills\n===\n\n```\nnpm install --save-dev rollup-plugin-node-polyfills\n```\n\nAllows the node builtins to be `require`d/`import`ed.\n\nThe following modules include ES6 specific version which allow you to do named imports in addition to the default import and should work fine if you only use this plugin.\n\n- process*\n- events\n- stream*\n- util*\n- path\n- buffer*\n- querystring\n- url*\n- string_decoder*\n- punycode\n- http*†\n- https*†\n- os*\n- assert*\n- constants\n- timers*\n- console*‡\n- vm*§\n- zlib*\n- tty\n- domain\n- dns∆\n- dgram∆\n- child_process∆\n- cluster∆\n- module∆\n- net∆\n- readline∆\n- repl∆\n- tls∆\n- fs˚\n- crypto˚\n\n\n† the http and https modules are actually the same and don't differentiate based on protocol\n\n‡ default export only, because it's console, seriously just use the global\n\n§ vm does not have all corner cases and has less of them in a web worker\n\n∆ not shimmed, just returns mock\n\n˚ optional, add option to enable browserified shim\n\nCrypto is not shimmed and and we just provide the commonjs one from browserify  and it will likely not work, if you really want it please pass `{crypto: true}` as an option.\n\nNot all included modules rollup equally, streams (and by extension anything that requires it like http) are a mess of circular references that are pretty much impossible to tree-shake out, similarly url methods are actually a shortcut to a url object so those methods don't tree shake out very well, punycode, path, querystring, events, util, and process tree shake very well especially if you do named imports.\n\nconfig for using this with something simple like events or querystring\n\n```js\nimport nodePolyfills from 'rollup-plugin-node-polyfills';\nrollup({\n  entry: 'main.js',\n  plugins: [\n    nodePolyfills()\n  ]\n})\n```\n\nand now if main contains this, it should just work\n\n```js\nimport EventEmitter from 'events';\nimport {inherits} from 'util';\n\n// etc\n```\n\nConfig for something more complicated like http\n\n```js\nimport nodePolyfills from 'rollup-plugin-node-polyfills';\nrollup({\n  entry: 'main.js',\n  plugins: [\n    nodePolyfills()\n  ]\n})\n```\n\nLicense\n===\n\nMIT except ES6 ports of browserify modules which are whatever the original library was.\n","_attachments":{},"homepage":"https://github.com/ionic-team/rollup-plugin-node-polyfills#readme","bugs":{"url":"https://github.com/ionic-team/rollup-plugin-node-polyfills/issues"},"license":"MIT"}