{"_id":"modern-node-polyfills","_rev":"3548891","name":"modern-node-polyfills","description":"modern polyfills for node native modules based on jspm-core","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"aslemammad","email":""},{"name":"christian-bromann","email":""}],"time":{"modified":"2024-09-19T02:38:44.000Z","created":"2022-07-15T20:20:03.044Z","1.0.0":"2023-06-12T19:47:08.915Z","0.1.3":"2023-04-24T02:49:12.052Z","0.1.2":"2023-04-23T19:16:28.729Z","0.1.1":"2023-04-22T17:41:09.291Z","0.1.0":"2023-02-18T16:58:27.660Z","0.0.9":"2022-08-08T05:34:00.571Z","0.0.8":"2022-08-06T11:33:59.642Z","0.0.7":"2022-07-17T20:21:35.448Z","0.0.6":"2022-07-16T14:00:17.267Z","0.0.5":"2022-07-16T12:34:37.401Z","0.0.4":"2022-07-16T12:31:57.449Z","0.0.3":"2022-07-16T12:17:28.470Z","0.0.2":"2022-07-15T20:57:43.018Z","0.0.1":"2022-07-15T20:22:39.935Z","0.0.0":"2022-07-15T20:20:03.044Z"},"users":{},"author":{"name":"Mohammad Bagher Abiat"},"repository":{"type":"git","url":"git+https://github.com/Aslemammad/modern-node-polyfills.git"},"versions":{"1.0.0":{"name":"modern-node-polyfills","version":"1.0.0","description":"modern polyfills for node native modules based on jspm-core","type":"module","main":"./dist/index.cjs","module":"./index.js","types":"./dist/index.d.ts","sideEffects":false,"scripts":{"dev":"pnpm tsup --watch","build":"pnpm tsup","test":"pnpm vitest"},"keywords":["polyfills","shims","edge"],"author":{"name":"Mohammad Bagher Abiat"},"license":"MIT","exports":{".":{"types":"./dist/index.d.ts","import":"./index.js","require":"./dist/index.cjs","default":"./index.js"},"./global":{"types":"./dist/global.d.ts","import":"./dist/global.js","require":"./dist/global.cjs","default":"./dist/global.js"}},"dependencies":{"@jspm/core":"^2.0.1","@rollup/pluginutils":"^5.0.2","local-pkg":"^0.4.3"},"devDependencies":{"@rollup/plugin-inject":"^5.0.3","@types/node":"^18.16.17","acorn":"^8.8.2","esbuild":"^0.18.0","estree-walker":"^3.0.3","magic-string":"^0.30.0","resolve.exports":"^2.0.2","rollup":"^2.79.1","tsup":"^6.7.0","typescript":"^5.1.3","vitest":"^0.32.0"},"peerDependencies":{"esbuild":"^0.14.0 || ^0.15.0 || ^0.16.0 || ^0.17.0 || ^0.18.0"},"repository":{"type":"git","url":"git+https://github.com/Aslemammad/modern-node-polyfills.git"},"engines":{"node":">=14.0.0"},"gitHead":"4e2d23b7384ed491d5aeaf6ba66f01c13f0622a8","bugs":{"url":"https://github.com/Aslemammad/modern-node-polyfills/issues"},"homepage":"https://github.com/Aslemammad/modern-node-polyfills#readme","_id":"modern-node-polyfills@1.0.0","_nodeVersion":"17.9.1","_npmVersion":"8.11.0","dist":{"shasum":"f0ac8eddb49dd18f51a9f6e72d2934392bbc9720","size":103570,"noattachment":false,"key":"/modern-node-polyfills/-/modern-node-polyfills-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/modern-node-polyfills/download/modern-node-polyfills-1.0.0.tgz"},"_npmUser":{"name":"aslemammad","email":"zorofight94@gmail.com"},"directories":{},"maintainers":[{"name":"aslemammad","email":""},{"name":"christian-bromann","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modern-node-polyfills_1.0.0_1686599228750_0.32519700113292793"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-06-12T19:47:08.915Z","publish_time":1686599228915,"_source_registry_name":"default","_cnpm_publish_time":1686599228915},"0.1.3":{"name":"modern-node-polyfills","version":"0.1.3","description":"modern polyfills for node native modules based on jspm-core","type":"module","main":"./dist/index.cjs","module":"./index.js","types":"./dist/index.d.ts","sideEffects":false,"scripts":{"dev":"pnpm tsup --watch","build":"pnpm tsup","test":"pnpm vitest"},"keywords":["polyfills","shims","edge"],"author":{"name":"Mohammad Bagher Abiat"},"license":"MIT","exports":{".":{"types":"./dist/index.d.ts","import":"./index.js","require":"./dist/index.cjs","default":"./index.js"},"./global":{"types":"./dist/global.d.ts","import":"./dist/global.js","require":"./dist/global.cjs","default":"./dist/global.js"}},"dependencies":{"@jspm/core":"2.0.0-beta.24","esbuild":"^0.14.54","@rollup/pluginutils":"^3.1.0","local-pkg":"^0.4.3"},"devDependencies":{"@rollup/plugin-inject":"^4.0.4","@types/node":"^18.15.13","acorn":"^8.8.2","estree-walker":"^2.0.2","magic-string":"^0.25.9","resolve.exports":"^1.1.1","rollup":"^2.79.1","tsup":"^6.7.0","typescript":"^4.9.5","vitest":"^0.16.0"},"repository":{"type":"git","url":"git+https://github.com/Aslemammad/modern-node-polyfills.git"},"gitHead":"ec0dd74cd1490983a718b447fe35bcd5bca559b9","bugs":{"url":"https://github.com/Aslemammad/modern-node-polyfills/issues"},"homepage":"https://github.com/Aslemammad/modern-node-polyfills#readme","_id":"modern-node-polyfills@0.1.3","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"shasum":"ae8ff3bfc8311421413173a782ecfc6bf240491a","size":104465,"noattachment":false,"key":"/modern-node-polyfills/-/modern-node-polyfills-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/modern-node-polyfills/download/modern-node-polyfills-0.1.3.tgz"},"_npmUser":{"name":"aslemammad","email":"zorofight94@gmail.com"},"directories":{},"maintainers":[{"name":"aslemammad","email":""},{"name":"christian-bromann","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modern-node-polyfills_0.1.3_1682304551883_0.10835483570305948"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-24T02:49:12.052Z","publish_time":1682304552052,"_cnpm_publish_time":1682304552052},"0.1.2":{"name":"modern-node-polyfills","version":"0.1.2","description":"modern polyfills for node native modules based on jspm-core","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","sideEffects":false,"scripts":{"dev":"pnpm tsup --watch","build":"pnpm tsup","test":"pnpm vitest"},"keywords":["polyfills","shims","edge"],"author":{"name":"Mohammad Bagher Abiat"},"license":"MIT","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs","default":"./dist/index.js"},"./global":{"types":"./dist/global.d.ts","import":"./dist/global.js","require":"./dist/global.cjs","default":"./dist/global.js"}},"dependencies":{"@jspm/core":"2.0.0-beta.24","esbuild":"^0.14.54","@rollup/pluginutils":"^3.1.0","local-pkg":"^0.4.3"},"devDependencies":{"@rollup/plugin-inject":"^4.0.4","@types/node":"^18.15.13","acorn":"^8.8.2","estree-walker":"^2.0.2","magic-string":"^0.25.9","resolve.exports":"^1.1.1","rollup":"^2.79.1","tsup":"^6.7.0","typescript":"^4.9.5","vitest":"^0.16.0"},"repository":{"type":"git","url":"git+https://github.com/Aslemammad/modern-node-polyfills.git"},"gitHead":"3858c34d87fe1e670209b1e64ea869fa6cd599bf","bugs":{"url":"https://github.com/Aslemammad/modern-node-polyfills/issues"},"homepage":"https://github.com/Aslemammad/modern-node-polyfills#readme","_id":"modern-node-polyfills@0.1.2","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"shasum":"df662f9e6001a22c8f54d693f7f9b06cb65b2924","size":104461,"noattachment":false,"key":"/modern-node-polyfills/-/modern-node-polyfills-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/modern-node-polyfills/download/modern-node-polyfills-0.1.2.tgz"},"_npmUser":{"name":"aslemammad","email":"zorofight94@gmail.com"},"directories":{},"maintainers":[{"name":"aslemammad","email":""},{"name":"christian-bromann","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modern-node-polyfills_0.1.2_1682277388538_0.1786910426092747"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-23T19:16:28.729Z","publish_time":1682277388729,"_cnpm_publish_time":1682277388729},"0.1.1":{"name":"modern-node-polyfills","version":"0.1.1","description":"modern polyfills for node native modules based on jspm-core","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","sideEffects":false,"scripts":{"dev":"pnpm tsup --watch","build":"pnpm tsup","test":"pnpm vitest"},"keywords":["polyfills","shims","edge"],"author":{"name":"Mohammad Bagher Abiat"},"license":"MIT","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs","default":"./dist/index.js"},"./global":{"types":"./dist/global.d.ts","import":"./dist/global.js","require":"./dist/global.cjs","default":"./dist/global.js"}},"dependencies":{"@jspm/core":"2.0.0-beta.24","esbuild":"^0.14.54","local-pkg":"^0.4.3"},"devDependencies":{"@rollup/plugin-inject":"^4.0.4","@rollup/pluginutils":"^3.1.0","@types/node":"^18.15.13","acorn":"^8.8.2","estree-walker":"^2.0.2","magic-string":"^0.25.9","resolve.exports":"^1.1.1","rollup":"^2.79.1","tsup":"^6.7.0","typescript":"^4.9.5","vitest":"^0.16.0"},"repository":{"type":"git","url":"git+https://github.com/Aslemammad/modern-node-polyfills.git"},"gitHead":"84b347ab199367c68258046d1c76c08bd783097c","bugs":{"url":"https://github.com/Aslemammad/modern-node-polyfills/issues"},"homepage":"https://github.com/Aslemammad/modern-node-polyfills#readme","_id":"modern-node-polyfills@0.1.1","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"shasum":"1ab86d10c24ec5d5472cdcb15b04afd153768891","size":104456,"noattachment":false,"key":"/modern-node-polyfills/-/modern-node-polyfills-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/modern-node-polyfills/download/modern-node-polyfills-0.1.1.tgz"},"_npmUser":{"name":"aslemammad","email":"zorofight94@gmail.com"},"directories":{},"maintainers":[{"name":"aslemammad","email":""},{"name":"christian-bromann","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modern-node-polyfills_0.1.1_1682185269111_0.5215747309738836"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-22T17:41:09.291Z","publish_time":1682185269291,"_cnpm_publish_time":1682185269291},"0.1.0":{"name":"modern-node-polyfills","version":"0.1.0","description":"modern polyfills for node native modules based on jspm-core","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","sideEffects":false,"scripts":{"dev":"pnpm tsup --watch","build":"pnpm tsup","test":"pnpm vitest"},"keywords":["polyfills","shims","edge"],"author":{"name":"Mohammad Bagher Abiat"},"license":"MIT","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs","default":"./dist/index.js"},"./global":{"types":"./dist/global.d.ts","import":"./dist/global.js","require":"./dist/global.cjs","default":"./dist/global.js"}},"dependencies":{"@jspm/core":"2.0.0-beta.24","@rollup/plugin-inject":"^4.0.4","acorn":"^8.8.0","esbuild":"^0.14.47","local-pkg":"^0.4.1","rollup":"^2.75.7"},"devDependencies":{"@rollup/pluginutils":"^3.1.0","@types/node":"^18.0.0","estree-walker":"^2.0.1","magic-string":"^0.25.7","resolve.exports":"^1.1.0","tsup":"^6.1.3","typescript":"^4.7.4","vitest":"^0.16.0"},"repository":{"type":"git","url":"git+https://github.com/Aslemammad/modern-node-polyfills.git"},"gitHead":"ffea714e7332226c3d828b755bdb2423a3158b89","bugs":{"url":"https://github.com/Aslemammad/modern-node-polyfills/issues"},"homepage":"https://github.com/Aslemammad/modern-node-polyfills#readme","_id":"modern-node-polyfills@0.1.0","_nodeVersion":"17.9.1","_npmVersion":"8.11.0","dist":{"shasum":"f2ee8603c17da05cc4336871e61f64bf05f7edc3","size":24389,"noattachment":false,"key":"/modern-node-polyfills/-/modern-node-polyfills-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/modern-node-polyfills/download/modern-node-polyfills-0.1.0.tgz"},"_npmUser":{"name":"aslemammad","email":"zorofight94@gmail.com"},"directories":{},"maintainers":[{"name":"aslemammad","email":""},{"name":"christian-bromann","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modern-node-polyfills_0.1.0_1676739507445_0.4477967792530666"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-18T16:58:27.660Z","publish_time":1676739507660,"_cnpm_publish_time":1676739507660},"0.0.9":{"name":"modern-node-polyfills","version":"0.0.9","description":"modern polyfills for node native modules based on jspm-core","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","sideEffects":false,"scripts":{"dev":"pnpm tsup --watch","build":"pnpm tsup","test":"pnpm vitest"},"keywords":["polyfills","shims","edge"],"author":{"name":"Mohammad Bagher Abiat"},"license":"MIT","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./global":{"types":"./dist/global.d.ts","import":"./dist/global.js","require":"./dist/global.cjs"}},"dependencies":{"@jspm/core":"2.0.0-beta.24","@rollup/plugin-inject":"^4.0.4","acorn":"^8.8.0","esbuild":"^0.14.47","local-pkg":"^0.4.1","rollup":"^2.75.7"},"devDependencies":{"@rollup/pluginutils":"^3.1.0","@types/node":"^18.0.0","estree-walker":"^2.0.1","magic-string":"^0.25.7","resolve.exports":"^1.1.0","tsup":"^6.1.3","typescript":"^4.7.4","vitest":"^0.16.0"},"gitHead":"dc1b46e59ca642b74d380c65834c0b32bbd66856","_id":"modern-node-polyfills@0.0.9","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"shasum":"07d41bff0a6d90abca7771cd1a3fc850413fff57","size":23455,"noattachment":false,"key":"/modern-node-polyfills/-/modern-node-polyfills-0.0.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/modern-node-polyfills/download/modern-node-polyfills-0.0.9.tgz"},"_npmUser":{"name":"aslemammad","email":"zorofight94@gmail.com"},"directories":{},"maintainers":[{"name":"aslemammad","email":""},{"name":"christian-bromann","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modern-node-polyfills_0.0.9_1659936840376_0.8632127782829282"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-08T05:34:07.117Z","publish_time":1659936840571,"_cnpm_publish_time":1659936840571},"0.0.8":{"name":"modern-node-polyfills","version":"0.0.8","description":"modern polyfills for node native modules based on jspm-core","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","sideEffects":false,"scripts":{"dev":"pnpm tsup --watch","build":"pnpm tsup","test":"pnpm vitest"},"keywords":["polyfills","shims","edge"],"author":{"name":"Mohammad Bagher Abiat"},"license":"MIT","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./global":{"types":"./dist/global.d.ts","import":"./dist/global.js","require":"./dist/global.cjs"}},"dependencies":{"@jspm/core":"2.0.0-beta.24","@rollup/plugin-inject":"^4.0.4","acorn":"^8.7.1","esbuild":"^0.14.47","local-pkg":"^0.4.1","rollup":"^2.75.7"},"devDependencies":{"@rollup/pluginutils":"^3.1.0","@types/node":"^18.0.0","estree-walker":"^2.0.1","magic-string":"^0.25.7","resolve.exports":"^1.1.0","tsup":"^6.1.3","typescript":"^4.7.4","vitest":"^0.16.0"},"gitHead":"4f068116ac3f77b11df6f1a50dd2450dbd6b3863","_id":"modern-node-polyfills@0.0.8","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"shasum":"46a80b6e7ad80cf63b9939ec5281170b0ac0d925","size":23295,"noattachment":false,"key":"/modern-node-polyfills/-/modern-node-polyfills-0.0.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/modern-node-polyfills/download/modern-node-polyfills-0.0.8.tgz"},"_npmUser":{"name":"aslemammad","email":"zorofight94@gmail.com"},"directories":{},"maintainers":[{"name":"aslemammad","email":""},{"name":"christian-bromann","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modern-node-polyfills_0.0.8_1659785639424_0.41106868587914636"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-06T11:34:05.636Z","publish_time":1659785639642,"_cnpm_publish_time":1659785639642},"0.0.7":{"name":"modern-node-polyfills","version":"0.0.7","description":"modern polyfills for node native modules based on jspm-core","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","sideEffects":false,"scripts":{"dev":"pnpm tsup --watch","build":"pnpm tsup","test":"pnpm vitest"},"keywords":["polyfills","shims","edge"],"author":{"name":"Mohammad Bagher Abiat"},"license":"MIT","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./global":{"types":"./dist/global.d.ts","import":"./dist/global.js","require":"./dist/global.cjs"}},"dependencies":{"@jspm/core":"2.0.0-beta.24","@rollup/plugin-inject":"^4.0.4","acorn":"^8.7.1","esbuild":"^0.14.47","local-pkg":"^0.4.1","rollup":"^2.75.7"},"devDependencies":{"@rollup/pluginutils":"^3.1.0","@types/node":"^18.0.0","estree-walker":"^2.0.1","magic-string":"^0.25.7","resolve.exports":"^1.1.0","tsup":"^6.1.3","typescript":"^4.7.4","vitest":"^0.16.0"},"gitHead":"ff64137586107dd38b3f484d5c410c5c9e84a157","_id":"modern-node-polyfills@0.0.7","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"shasum":"ce90729f506092be945a9b28d3d467e6462256d2","size":23306,"noattachment":false,"key":"/modern-node-polyfills/-/modern-node-polyfills-0.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/modern-node-polyfills/download/modern-node-polyfills-0.0.7.tgz"},"_npmUser":{"name":"aslemammad","email":"zorofight94@gmail.com"},"directories":{},"maintainers":[{"name":"aslemammad","email":""},{"name":"christian-bromann","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modern-node-polyfills_0.0.7_1658089295240_0.40340261611324024"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-17T20:21:39.607Z","publish_time":1658089295448,"_cnpm_publish_time":1658089295448},"0.0.6":{"name":"modern-node-polyfills","version":"0.0.6","description":"modern polyfills for node native modules based on jspm-core","type":"module","scripts":{"dev":"pnpm tsup --watch","build":"pnpm tsup","test":"pnpm vitest"},"keywords":["polyfills","shims","edge"],"author":{"name":"Mohammad Bagher Abiat"},"license":"MIT","exports":{"./":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./global":{"types":"./dist/global.d.ts","import":"./dist/global.js","default":"./dist/global.js"}},"dependencies":{"@jspm/core":"2.0.0-beta.24","@rollup/plugin-inject":"^4.0.4","acorn":"^8.7.1","esbuild":"^0.14.47","local-pkg":"^0.4.1","rollup":"^2.75.7"},"devDependencies":{"@rollup/pluginutils":"^3.1.0","@types/node":"^18.0.0","estree-walker":"^2.0.1","magic-string":"^0.25.7","resolve.exports":"^1.1.0","tsup":"^6.1.3","typescript":"^4.7.4","vitest":"^0.16.0"},"gitHead":"694326cbb2280aa0f4d4894f263819238322b374","_id":"modern-node-polyfills@0.0.6","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"shasum":"1e13fe44e00a6dca6208ac8986ec225cc1254529","size":12727,"noattachment":false,"key":"/modern-node-polyfills/-/modern-node-polyfills-0.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/modern-node-polyfills/download/modern-node-polyfills-0.0.6.tgz"},"_npmUser":{"name":"aslemammad","email":"zorofight94@gmail.com"},"directories":{},"maintainers":[{"name":"aslemammad","email":""},{"name":"christian-bromann","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modern-node-polyfills_0.0.6_1657980017056_0.16331715960093485"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-16T14:00:21.351Z","publish_time":1657980017267,"_cnpm_publish_time":1657980017267},"0.0.5":{"name":"modern-node-polyfills","version":"0.0.5","description":"modern polyfills for node native modules based on jspm-core","type":"module","main":"./dist/index.js","module":"./dist/index.js","scripts":{"dev":"pnpm tsup --watch","build":"pnpm tsup","test":"pnpm vitest"},"keywords":["polyfills","shims","edge"],"author":{"name":"Mohammad Bagher Abiat"},"license":"MIT","exports":{"./":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./global":{"types":"./dist/global.d.ts","import":"./dist/global.js","default":"./dist/global.js"}},"dependencies":{"@jspm/core":"2.0.0-beta.24","@rollup/plugin-inject":"^4.0.4","acorn":"^8.7.1","esbuild":"^0.14.47","local-pkg":"^0.4.1","rollup":"^2.75.7"},"devDependencies":{"@rollup/pluginutils":"^3.1.0","@types/node":"^18.0.0","estree-walker":"^2.0.1","magic-string":"^0.25.7","resolve.exports":"^1.1.0","tsup":"^6.1.3","typescript":"^4.7.4","vitest":"^0.16.0"},"types":"./dist/index.d.ts","gitHead":"33c4351910bcf3c98876a15b1f7562c9acbdf355","_id":"modern-node-polyfills@0.0.5","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"shasum":"ea6c19eb2ac7c6344312106b1a3342bf1299ee89","size":12738,"noattachment":false,"key":"/modern-node-polyfills/-/modern-node-polyfills-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/modern-node-polyfills/download/modern-node-polyfills-0.0.5.tgz"},"_npmUser":{"name":"aslemammad","email":"zorofight94@gmail.com"},"directories":{},"maintainers":[{"name":"aslemammad","email":""},{"name":"christian-bromann","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modern-node-polyfills_0.0.5_1657974877232_0.5611801504955594"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-16T12:34:41.406Z","publish_time":1657974877401,"_cnpm_publish_time":1657974877401},"0.0.4":{"name":"modern-node-polyfills","version":"0.0.4","description":"modern polyfills for node native modules based on jspm-core","type":"module","main":"./dist/esm/index.js","module":"./dist/esm/index.js","scripts":{"dev":"pnpm tsup --watch","build":"pnpm tsup","test":"pnpm vitest"},"keywords":["polyfills","shims","edge"],"author":{"name":"Mohammad Bagher Abiat"},"license":"MIT","exports":{"./":{"types":"./dist/index.d.ts","import":"./dist/esm/index.js","default":"./dist/esm/index.js"},"./global":{"types":"./dist/global.d.ts","import":"./dist/esm/global.js","default":"./dist/esm/global.js"}},"dependencies":{"@jspm/core":"2.0.0-beta.24","@rollup/plugin-inject":"^4.0.4","acorn":"^8.7.1","esbuild":"^0.14.47","local-pkg":"^0.4.1","rollup":"^2.75.7"},"devDependencies":{"@rollup/pluginutils":"^3.1.0","estree-walker":"^2.0.1","magic-string":"^0.25.7","@types/node":"^18.0.0","resolve.exports":"^1.1.0","tsup":"^6.1.2","typescript":"^4.7.4","vitest":"^0.16.0"},"gitHead":"ac648ea33188d69a9a98d05ba649ec94b8f9eeae","_id":"modern-node-polyfills@0.0.4","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"shasum":"3158c1b494bbc0405854190750eafc807dfcfe19","size":12743,"noattachment":false,"key":"/modern-node-polyfills/-/modern-node-polyfills-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/modern-node-polyfills/download/modern-node-polyfills-0.0.4.tgz"},"_npmUser":{"name":"aslemammad","email":"zorofight94@gmail.com"},"directories":{},"maintainers":[{"name":"aslemammad","email":""},{"name":"christian-bromann","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modern-node-polyfills_0.0.4_1657974717187_0.26897438807407914"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-16T12:32:00.752Z","publish_time":1657974717449,"_cnpm_publish_time":1657974717449},"0.0.3":{"name":"modern-node-polyfills","version":"0.0.3","description":"modern polyfills for node native modules based on jspm-core","type":"module","main":"./dist/esm/index.js","module":"./dist/esm/index.js","scripts":{"dev":"pnpm tsup --watch","build":"pnpm tsup","test":"pnpm vitest"},"keywords":["polyfills","shims","edge"],"author":{"name":"Mohammad Bagher Abiat"},"license":"MIT","exports":{"./":{"types":"./dist/index.d.ts","default":"./dist/esm/index.js"},"./global":{"types":"./dist/global.d.ts","default":"./dist/esm/global.js"}},"dependencies":{"@jspm/core":"2.0.0-beta.24","@rollup/plugin-inject":"^4.0.4","acorn":"^8.7.1","esbuild":"^0.14.47","local-pkg":"^0.4.1","rollup":"^2.75.7"},"devDependencies":{"@rollup/pluginutils":"^3.1.0","estree-walker":"^2.0.1","magic-string":"^0.25.7","@types/node":"^18.0.0","resolve.exports":"^1.1.0","tsup":"^6.1.2","typescript":"^4.7.4","vitest":"^0.16.0"},"gitHead":"8307353d5cfc484cdfb7425c679b21300574cdfd","_id":"modern-node-polyfills@0.0.3","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"shasum":"eb10656679aed3f28e6074f0e418905b42392011","size":12730,"noattachment":false,"key":"/modern-node-polyfills/-/modern-node-polyfills-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/modern-node-polyfills/download/modern-node-polyfills-0.0.3.tgz"},"_npmUser":{"name":"aslemammad","email":"zorofight94@gmail.com"},"directories":{},"maintainers":[{"name":"aslemammad","email":""},{"name":"christian-bromann","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modern-node-polyfills_0.0.3_1657973848288_0.8157457680210494"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-16T12:17:31.018Z","publish_time":1657973848470,"_cnpm_publish_time":1657973848470},"0.0.2":{"name":"modern-node-polyfills","version":"0.0.2","description":"modern polyfills for node native modules based on jspm-core","type":"module","main":"index.js","scripts":{"dev":"pnpm tsup --watch","build":"pnpm tsup","test":"pnpm vitest"},"keywords":["polyfills","shims","edge"],"author":{"name":"Mohammad Bagher Abiat"},"license":"MIT","exports":{"./":{"types":"./dist/index.d.ts","default":"./dist/esm/index.js"},"./global":{"types":"./dist/global.d.ts","default":"./dist/esm/global.js"}},"dependencies":{"@jspm/core":"2.0.0-beta.24","@rollup/plugin-inject":"^4.0.4","acorn":"^8.7.1","esbuild":"^0.14.47","local-pkg":"^0.4.1","rollup":"^2.75.7"},"devDependencies":{"@rollup/pluginutils":"^3.1.0","estree-walker":"^2.0.1","magic-string":"^0.25.7","@types/node":"^18.0.0","resolve.exports":"^1.1.0","tsup":"^6.1.2","typescript":"^4.7.4","vitest":"^0.16.0"},"gitHead":"3f1624037d7844643bacee9e2258fe74fde27319","_id":"modern-node-polyfills@0.0.2","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"shasum":"f4bb132bbd57c9b379a7ee0ae8ada7841d746649","size":12728,"noattachment":false,"key":"/modern-node-polyfills/-/modern-node-polyfills-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/modern-node-polyfills/download/modern-node-polyfills-0.0.2.tgz"},"_npmUser":{"name":"aslemammad","email":"zorofight94@gmail.com"},"directories":{},"maintainers":[{"name":"aslemammad","email":""},{"name":"christian-bromann","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modern-node-polyfills_0.0.2_1657918662886_0.5896753684269782"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-15T20:57:45.572Z","publish_time":1657918663018,"_cnpm_publish_time":1657918663018},"0.0.1":{"name":"modern-node-polyfills","version":"0.0.1","description":"modern polyfills for node native modules based on jspm-core","type":"module","main":"index.js","scripts":{"dev":"pnpm tsup --watch","build":"pnpm tsup","test":"pnpm vitest"},"keywords":["polyfills","shims","edge"],"author":{"name":"Mohammad Bagher Abiat"},"license":"MIT","exports":{"./":{"types":"./dist/index.d.ts","default":"./dist/esm/index.js"},"./global":{"types":"./dist/global.d.ts","default":"./dist/esm/global.js"}},"dependencies":{"@jspm/core":"2.0.0-beta.24","@rollup/plugin-inject":"^4.0.4","acorn":"^8.7.1","esbuild":"^0.14.47","local-pkg":"^0.4.1","rollup":"^2.75.7"},"devDependencies":{"@rollup/pluginutils":"^3.1.0","estree-walker":"^2.0.1","magic-string":"^0.25.7","@types/node":"^18.0.0","resolve.exports":"^1.1.0","tsup":"^6.1.2","typescript":"^4.7.4","vitest":"^0.16.0"},"gitHead":"2caf0b8d2857f87528fff5c84a744765b1043633","_id":"modern-node-polyfills@0.0.1","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"shasum":"b85c37f249fd382be4e7d84479e2a2fbc3e7edc6","size":12726,"noattachment":false,"key":"/modern-node-polyfills/-/modern-node-polyfills-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/modern-node-polyfills/download/modern-node-polyfills-0.0.1.tgz"},"_npmUser":{"name":"aslemammad","email":"zorofight94@gmail.com"},"directories":{},"maintainers":[{"name":"aslemammad","email":""},{"name":"christian-bromann","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modern-node-polyfills_0.0.1_1657916559768_0.7562487551281869"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-15T20:22:43.860Z","publish_time":1657916559935,"_cnpm_publish_time":1657916559935},"0.0.0":{"name":"modern-node-polyfills","version":"0.0.0","description":"modern polyfills for node native modules based on jspm-core","type":"module","main":"index.js","scripts":{"dev":"pnpm tsup --watch","build":"pnpm tsup","test":"pnpm vitest"},"keywords":["polyfills","shims","edge"],"author":{"name":"Mohammad Bagher Abiat"},"license":"MIT","exports":{"./":{"types":"./dist/index.d.ts","default":"./dist/esm/index.js"},"./global":{"types":"./dist/global.d.ts","default":"./dist/esm/global.js"}},"dependencies":{"@jspm/core":"2.0.0-beta.24","@rollup/plugin-inject":"^4.0.4","acorn":"^8.7.1","esbuild":"^0.14.47","local-pkg":"^0.4.1","rollup":"^2.75.7"},"devDependencies":{"@rollup/pluginutils":"^3.1.0","estree-walker":"^2.0.1","magic-string":"^0.25.7","@types/node":"^18.0.0","resolve.exports":"^1.1.0","tsup":"^6.1.2","typescript":"^4.7.4","vitest":"^0.16.0"},"gitHead":"987e6fff3d9747a4e9b3d3f854639319cd8eafac","_id":"modern-node-polyfills@0.0.0","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"shasum":"b8de1df8743aa919e6cc8a09af47dc3a17257e76","size":176839,"noattachment":false,"key":"/modern-node-polyfills/-/modern-node-polyfills-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/modern-node-polyfills/download/modern-node-polyfills-0.0.0.tgz"},"_npmUser":{"name":"aslemammad","email":"zorofight94@gmail.com"},"directories":{},"maintainers":[{"name":"aslemammad","email":""},{"name":"christian-bromann","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modern-node-polyfills_0.0.0_1657916402471_0.06998471810533569"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-15T20:20:07.536Z","publish_time":1657916403044,"_cnpm_publish_time":1657916403044}},"readme":"# modern-node-polyfills\nA way to enable using Node native modules in non-node (Browser, Cloudflare, Deno,\n...) environemnts with modern polyfills from [JSPM](https://github.com/jspm/jspm-core).\n\n[Here](https://github.com/jspm/jspm-core/tree/main/nodelibs/browser) are the modules that are supported in modern-node-polyfills.\n\n# Example\n```ts\nimport { polyfillPath } from \"modern-node-polyfills\";\n\nconsole.log(await polyfillPath(\"fs\")) \n// /home/bagher/project/@jspm/core/nodelibs/browser/fs.js\n```\n\n### `polyfillPath`\nThis function returns the path of the requested module.\n```ts\nawait polyfillPath(\"fs\");\nawait polyfillPath(\"node:fs\") // Modules can have the `node` prefix\n```\n\n### `polyfillContent`\nIt returns the bundled content of a specific node module instead of a path.\n```ts\nconsole.log(await polyfillContent(\"fs\"));\n// the bundled source of `fs`\n```\n\n## `inject`\nThis function tries to do the work of [@rollup/plugin-inject](https://github.com/rollup/plugins/tree/master/packages/inject#readme) plugin! but it also adds a new option called `expressions` which is for replacing javascript expressions like `__filename`.\n\n```ts\nconsole.log(await inject(\"console.log(__filename);\", {\n  // replaces every global __filename with \"/\"\n  expressions: { __filename: \"/\" },\n  modules: {\n    // replaces every global `Buffer` with the imported `Buffer` from the polyfill buffer\n    Buffer: [await polyfillPath(\"buffer\"), \"Buffer\"],\n  }\n}))\n// logs `console.log(\"/\")`\n```\n\n## `polyfillGlobals`\nA way to polyfill all global node expressions, in this case, `process`,\n`Buffer`, `global`, `setImmediate`, `clearImmediate`, `__dirname` and `__filename`. It's possible to customize the `__filename` and `__dirname` values in the second argument of this function.\n```ts\nconsole.log(await polyfillGlobals(`\n    console.log(global);\n    console.log(process);\n    console.log(Buffer);\n    console.log(setImmediate);\n    console.log(clearImmediate);\n`))\n// shows the polyfilled content\n```\nAs a third argument, it's possible to change the path of those global polyfills or\neven disable them using `null`.\n\n```ts\nconst content = await polyfillGlobals(\n\t`\n\tconsole.log(global)\n\tconsole.log(process);\n\tconsole.log(Buffer);\n\tconsole.log(setImmediate);\n\tconsole.log(clearImmediate);\n`,\n\t{},\n\t{\n\t\tprocess: \"/here/process.js\",\n\t\tBuffer: null,\n\t\tglobal: null,\n\t\tsetImmediate: null,\n\t\tclearImmediate: null,\n\t}\n);\n```\n\n# Contribution\nFeel free to let me know what you need for this package or what issue you have,\nI'd be happy!\n\n","_attachments":{},"homepage":"https://github.com/Aslemammad/modern-node-polyfills#readme","bugs":{"url":"https://github.com/Aslemammad/modern-node-polyfills/issues"},"license":"MIT"}