{"_id":"periscopic","_rev":"3274692","name":"periscopic","description":"periscopic","dist-tags":{"latest":"4.0.2"},"maintainers":[{"name":"rich_harris","email":""}],"time":{"modified":"2024-03-21T10:20:50.000Z","created":"2019-09-08T19:34:42.924Z","4.0.2":"2023-09-10T19:05:00.397Z","4.0.1":"2023-09-10T18:59:29.097Z","4.0.0":"2023-09-10T18:50:56.895Z","3.1.0":"2023-01-26T20:41:44.167Z","3.0.4":"2021-07-20T23:47:59.139Z","3.0.3":"2021-07-20T16:38:44.622Z","3.0.2":"2021-05-17T13:33:35.156Z","3.0.1":"2021-05-17T13:25:26.879Z","3.0.0":"2021-01-29T21:29:08.266Z","2.0.3":"2020-12-08T18:17:17.973Z","2.0.2":"2019-11-29T18:41:45.457Z","2.0.1":"2019-11-11T22:27:07.353Z","2.0.0":"2019-11-06T13:57:15.220Z","1.1.0":"2019-10-25T21:31:10.800Z","1.0.2":"2019-10-13T21:54:45.158Z","1.0.1":"2019-09-24T02:33:21.278Z","1.0.0":"2019-09-08T19:34:42.924Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/Rich-Harris/periscopic.git"},"versions":{"4.0.2":{"name":"periscopic","description":"periscopic","version":"4.0.2","repository":{"type":"git","url":"git+https://github.com/Rich-Harris/periscopic.git"},"main":"src/index.js","module":"src/index.js","type":"module","exports":{"types":"./types/index.js","default":"./src/index.js"},"types":"types/index.d.ts","devDependencies":{"acorn":"^8.10.0","dts-buddy":"^0.2.4","typescript":"^5.2.2","uvu":"^0.5.6"},"scripts":{"test":"uvu test","prepublishOnly":"npm test && dts-buddy"},"license":"MIT","dependencies":{"@types/estree":"*","is-reference":"^3.0.2","zimmerframe":"^1.0.0"},"packageManager":"pnpm@8.7.4","gitHead":"f6e9af38fae17aec9fe811e90495d6c4c1a4d6fe","bugs":{"url":"https://github.com/Rich-Harris/periscopic/issues"},"homepage":"https://github.com/Rich-Harris/periscopic#readme","_id":"periscopic@4.0.2","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"shasum":"75961389a7e4fc902349e75abbaa373dfd6902a5","size":3759,"noattachment":false,"key":"/periscopic/-/periscopic-4.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/periscopic/download/periscopic-4.0.2.tgz"},"_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"directories":{},"maintainers":[{"name":"rich_harris","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/periscopic_4.0.2_1694372700200_0.01897623691532968"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-10T19:05:00.397Z","publish_time":1694372700397,"_source_registry_name":"default","_cnpm_publish_time":1694372700397},"4.0.1":{"name":"periscopic","description":"periscopic","version":"4.0.1","repository":{"type":"git","url":"git+https://github.com/Rich-Harris/periscopic.git"},"main":"src/index.js","module":"src/index.js","type":"module","exports":{"types":"./types/index.js","default":"./src/index.js"},"types":"types/index.d.ts","devDependencies":{"acorn":"^8.10.0","dts-buddy":"^0.2.4","typescript":"^5.2.2","uvu":"^0.5.6"},"scripts":{"test":"uvu test","prepublishOnly":"npm test && dts-buddy"},"license":"MIT","dependencies":{"@types/estree":"*","is-reference":"^3.0.2","zimmerframe":"^1.0.0"},"packageManager":"pnpm@8.7.4","gitHead":"11f52aec91303c39c3ce3e854460f0ca3d5bcfa9","bugs":{"url":"https://github.com/Rich-Harris/periscopic/issues"},"homepage":"https://github.com/Rich-Harris/periscopic#readme","_id":"periscopic@4.0.1","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"shasum":"c4066bddc762a91c72cec259e5aa2c98b63a6c60","size":3848,"noattachment":false,"key":"/periscopic/-/periscopic-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/periscopic/download/periscopic-4.0.1.tgz"},"_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"directories":{},"maintainers":[{"name":"rich_harris","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/periscopic_4.0.1_1694372368924_0.7843036870435367"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-10T18:59:29.097Z","publish_time":1694372369097,"_source_registry_name":"default","_cnpm_publish_time":1694372369097},"4.0.0":{"name":"periscopic","description":"periscopic","version":"4.0.0","repository":{"type":"git","url":"git+https://github.com/Rich-Harris/periscopic.git"},"main":"src/index.js","module":"src/index.js","type":"module","exports":{"types":"./types/index.js","default":"./src/index.js"},"types":"types/index.d.ts","devDependencies":{"acorn":"^8.0.0","dts-buddy":"^0.2.4","typescript":"^4.9.0","uvu":"^0.5.1"},"scripts":{"test":"uvu test","prepublishOnly":"npm test && dts-buddy"},"license":"MIT","dependencies":{"@types/estree":"^1.0.0","is-reference":"^3.0.0","zimmerframe":"^1.0.0"},"packageManager":"pnpm@8.7.4","gitHead":"0c6ab4f9da09a52f4eaf40870f21502db0866f84","bugs":{"url":"https://github.com/Rich-Harris/periscopic/issues"},"homepage":"https://github.com/Rich-Harris/periscopic#readme","_id":"periscopic@4.0.0","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"shasum":"615ce0d47c1493a579a882116bdd033ecaf3fde1","size":3841,"noattachment":false,"key":"/periscopic/-/periscopic-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/periscopic/download/periscopic-4.0.0.tgz"},"_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"directories":{},"maintainers":[{"name":"rich_harris","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/periscopic_4.0.0_1694371856714_0.3478643902250058"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-10T18:50:56.895Z","publish_time":1694371856895,"_source_registry_name":"default","_cnpm_publish_time":1694371856895},"3.1.0":{"name":"periscopic","description":"periscopic","version":"3.1.0","repository":{"type":"git","url":"git+https://github.com/Rich-Harris/periscopic.git"},"main":"src/index.js","module":"src/index.js","type":"module","exports":{"types":"./types/index.js","import":"./src/index.js"},"types":"types/index.d.ts","devDependencies":{"acorn":"^8.0.0","typescript":"^4.9.0","uvu":"^0.5.1"},"scripts":{"test":"uvu test","prepublishOnly":"npm test && tsc"},"license":"MIT","dependencies":{"@types/estree":"^1.0.0","estree-walker":"^3.0.0","is-reference":"^3.0.0"},"gitHead":"088d446fb269993ece75ba24e9ac3e9ff07c9e6f","bugs":{"url":"https://github.com/Rich-Harris/periscopic/issues"},"homepage":"https://github.com/Rich-Harris/periscopic#readme","_id":"periscopic@3.1.0","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"shasum":"7e9037bf51c5855bd33b48928828db4afa79d97a","size":3595,"noattachment":false,"key":"/periscopic/-/periscopic-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/periscopic/download/periscopic-3.1.0.tgz"},"_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"directories":{},"maintainers":[{"name":"rich_harris","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/periscopic_3.1.0_1674765703987_0.8300928900086799"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-26T20:41:44.167Z","publish_time":1674765704167,"_cnpm_publish_time":1674765704167},"3.0.4":{"name":"periscopic","description":"periscopic","version":"3.0.4","repository":{"type":"git","url":"git+https://github.com/Rich-Harris/periscopic.git"},"main":"src/index.js","module":"src/index.js","type":"module","exports":{"import":"./src/index.js"},"types":"types/index.d.ts","devDependencies":{"@types/estree":"0.0.39","acorn":"^7.0.0","typescript":"^4.1.2","uvu":"^0.5.1"},"scripts":{"test":"uvu test","prepublishOnly":"npm test && tsc"},"license":"MIT","dependencies":{"estree-walker":"^3.0.0","is-reference":"^3.0.0"},"gitHead":"df24c0fa9e94629fa6b3bde17d263af8ecf62586","bugs":{"url":"https://github.com/Rich-Harris/periscopic/issues"},"homepage":"https://github.com/Rich-Harris/periscopic#readme","_id":"periscopic@3.0.4","_nodeVersion":"12.21.0","_npmVersion":"6.14.11","dist":{"shasum":"b3fbed0d1bc844976b977173ca2cd4a0ef4fa8d1","size":4058,"noattachment":false,"key":"/periscopic/-/periscopic-3.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/periscopic/download/periscopic-3.0.4.tgz"},"_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"directories":{},"maintainers":[{"name":"rich_harris","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/periscopic_3.0.4_1626824879012_0.9248393027940498"},"_hasShrinkwrap":false,"publish_time":1626824879139,"_cnpm_publish_time":1626824879139},"3.0.3":{"name":"periscopic","description":"periscopic","version":"3.0.3","repository":{"type":"git","url":"git+https://github.com/Rich-Harris/periscopic.git"},"module":"src/index.js","type":"module","exports":{"import":"./src/index.js"},"types":"types/index.d.ts","devDependencies":{"@types/estree":"0.0.39","acorn":"^7.0.0","typescript":"^4.1.2","uvu":"^0.5.1"},"scripts":{"test":"uvu test","prepublishOnly":"npm test && tsc"},"license":"MIT","dependencies":{"estree-walker":"^3.0.0","is-reference":"^1.1.4"},"gitHead":"58d8184ddd3808db26340b6e8c7f6b3ef8811d9f","bugs":{"url":"https://github.com/Rich-Harris/periscopic/issues"},"homepage":"https://github.com/Rich-Harris/periscopic#readme","_id":"periscopic@3.0.3","_nodeVersion":"12.21.0","_npmVersion":"6.14.11","dist":{"shasum":"e2d5f2545941a7769cef2e5bdccd6e26fade277a","size":4018,"noattachment":false,"key":"/periscopic/-/periscopic-3.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/periscopic/download/periscopic-3.0.3.tgz"},"_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"directories":{},"maintainers":[{"name":"rich_harris","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/periscopic_3.0.3_1626799124458_0.20043784532499753"},"_hasShrinkwrap":false,"publish_time":1626799124622,"_cnpm_publish_time":1626799124622},"3.0.2":{"name":"periscopic","description":"periscopic","version":"3.0.2","repository":{"type":"git","url":"git+https://github.com/Rich-Harris/periscopic.git"},"module":"src/index.js","type":"module","exports":{"import":"./src/index.js"},"types":"types/index.d.ts","devDependencies":{"@types/estree":"0.0.39","acorn":"^7.0.0","typescript":"^4.1.2","uvu":"^0.5.1"},"scripts":{"test":"uvu test","prepublishOnly":"npm test && tsc"},"license":"MIT","dependencies":{"estree-walker":"^3.0.0","is-reference":"^1.1.4"},"gitHead":"daf7076ed24dfcb3f442a9869990fda028e1252a","bugs":{"url":"https://github.com/Rich-Harris/periscopic/issues"},"homepage":"https://github.com/Rich-Harris/periscopic#readme","_id":"periscopic@3.0.2","_nodeVersion":"12.21.0","_npmVersion":"6.14.11","dist":{"shasum":"f3a8965dc2cffec8e5bd22bb74f8b00404e39f3e","size":3984,"noattachment":false,"key":"/periscopic/-/periscopic-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/periscopic/download/periscopic-3.0.2.tgz"},"_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"directories":{},"maintainers":[{"name":"rich_harris","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/periscopic_3.0.2_1621258414916_0.7428588158190059"},"_hasShrinkwrap":false,"publish_time":1621258415156,"_cnpm_publish_time":1621258415156},"3.0.1":{"name":"periscopic","description":"periscopic","version":"3.0.1","repository":{"type":"git","url":"git+https://github.com/Rich-Harris/periscopic.git"},"module":"src/index.js","type":"module","exports":{"import":"./src/index.js"},"types":"types/index.d.ts","devDependencies":{"@types/estree":"0.0.39","acorn":"^7.0.0","typescript":"^4.1.2","uvu":"^0.5.1"},"scripts":{"test":"uvu test","prepublishOnly":"npm test && tsc"},"license":"MIT","dependencies":{"estree-walker":"^3.0.0","is-reference":"^1.1.4"},"gitHead":"f2e9d752b5421acf8c8d02d96a95fa254f9beb5e","bugs":{"url":"https://github.com/Rich-Harris/periscopic/issues"},"homepage":"https://github.com/Rich-Harris/periscopic#readme","_id":"periscopic@3.0.1","_nodeVersion":"12.21.0","_npmVersion":"6.14.11","dist":{"shasum":"a6413b754b3f1ce79d5af992cf959ae305a15272","size":4497,"noattachment":false,"key":"/periscopic/-/periscopic-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/periscopic/download/periscopic-3.0.1.tgz"},"_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"directories":{},"maintainers":[{"name":"rich_harris","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/periscopic_3.0.1_1621257926741_0.9746814163225255"},"_hasShrinkwrap":false,"publish_time":1621257926879,"_cnpm_publish_time":1621257926879},"3.0.0":{"name":"periscopic","description":"periscopic","version":"3.0.0","repository":{"type":"git","url":"git+https://github.com/Rich-Harris/periscopic.git"},"module":"src/index.js","type":"module","exports":{"import":"./src/index.js"},"types":"types/index.d.ts","devDependencies":{"@types/estree":"0.0.39","acorn":"^7.0.0","typescript":"^4.1.2","uvu":"^0.5.1"},"scripts":{"test":"uvu test","prepublishOnly":"npm test && tsc"},"license":"MIT","dependencies":{"estree-walker":"^2.0.2","is-reference":"^1.1.4"},"gitHead":"ed79d47c7d0598d9e77cfa52399f35f2c3774edd","bugs":{"url":"https://github.com/Rich-Harris/periscopic/issues"},"homepage":"https://github.com/Rich-Harris/periscopic#readme","_id":"periscopic@3.0.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"shasum":"474aaec74bec1eed136e2516c935e736a5efc6dd","size":4458,"noattachment":false,"key":"/periscopic/-/periscopic-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/periscopic/download/periscopic-3.0.0.tgz"},"_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"directories":{},"maintainers":[{"name":"rich_harris","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/periscopic_3.0.0_1611955748095_0.02564174058440627"},"_hasShrinkwrap":false,"publish_time":1611955748266,"_cnpm_publish_time":1611955748266},"2.0.3":{"name":"periscopic","description":"periscopic","version":"2.0.3","repository":{"type":"git","url":"git+https://github.com/Rich-Harris/periscopic.git"},"main":"dist/periscopic.js","module":"dist/periscopic.mjs","exports":{"import":"./dist/periscopic.mjs","require":"./dist/periscopic.js"},"types":"types/index.d.ts","devDependencies":{"@types/estree":"0.0.39","acorn":"^7.0.0","rollup":"^0.65.2","typescript":"^4.1.2","uvu":"^0.5.1"},"scripts":{"build":"tsc && rollup -c","dev":"rollup -cw","test":"uvu test","prepublishOnly":"npm test && npm run build"},"license":"MIT","dependencies":{"estree-walker":"^2.0.2","is-reference":"^1.1.4"},"gitHead":"c6bc9e61c94c6da41cb47435f8604f3f9a03af93","bugs":{"url":"https://github.com/Rich-Harris/periscopic/issues"},"homepage":"https://github.com/Rich-Harris/periscopic#readme","_id":"periscopic@2.0.3","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"shasum":"326e16c46068172ca9a9d20af1a684cd0796fa99","size":4793,"noattachment":false,"key":"/periscopic/-/periscopic-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/periscopic/download/periscopic-2.0.3.tgz"},"_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"directories":{},"maintainers":[{"name":"rich_harris","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/periscopic_2.0.3_1607451437854_0.8502689405595525"},"_hasShrinkwrap":false,"publish_time":1607451437973,"_cnpm_publish_time":1607451437973},"2.0.2":{"name":"periscopic","description":"periscopic","version":"2.0.2","repository":{"type":"git","url":"git+https://github.com/Rich-Harris/periscopic.git"},"main":"dist/periscopic.js","module":"dist/periscopic.mjs","types":"types/index.d.ts","devDependencies":{"@types/estree":"0.0.39","@types/mocha":"^5.2.5","acorn":"^7.0.0","mocha":"^5.2.0","rollup":"^0.65.2","rollup-plugin-sucrase":"^2.1.0","sucrase":"^3.9.5","typescript":"^3.6.2"},"scripts":{"build":"tsc && rollup -c","dev":"rollup -cw","test":"mocha --opts mocha.opts","prepublishOnly":"npm test && npm run build"},"license":"MIT","dependencies":{"estree-walker":"^1.0.0","is-reference":"^1.1.4"},"gitHead":"d7a820b04e1f88b452313ab3e54771b352f0defb","bugs":{"url":"https://github.com/Rich-Harris/periscopic/issues"},"homepage":"https://github.com/Rich-Harris/periscopic#readme","_id":"periscopic@2.0.2","_nodeVersion":"12.0.0","_npmVersion":"6.9.0","dist":{"shasum":"17cb0fd368b6e7774cbaa62fa74897c01c7a1bf3","size":3958,"noattachment":false,"key":"/periscopic/-/periscopic-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/periscopic/download/periscopic-2.0.2.tgz"},"maintainers":[{"name":"rich_harris","email":""}],"_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/periscopic_2.0.2_1575052905345_0.07035802789165935"},"_hasShrinkwrap":false,"publish_time":1575052905457,"_cnpm_publish_time":1575052905457},"2.0.1":{"name":"periscopic","description":"periscopic","version":"2.0.1","repository":{"type":"git","url":"git+https://github.com/Rich-Harris/periscopic.git"},"main":"dist/periscopic.js","module":"dist/periscopic.mjs","types":"types/index.d.ts","devDependencies":{"@types/estree":"0.0.39","@types/mocha":"^5.2.5","@types/node":"^10.9.4","acorn":"^7.0.0","estree-walker":"^0.8.1","mocha":"^5.2.0","rollup":"^0.65.2","rollup-plugin-sucrase":"^2.1.0","sander":"^0.6.0","sucrase":"^3.9.5","tiny-glob":"^0.2.6","typescript":"^3.6.2"},"scripts":{"build-declarations":"tsc -d && node scripts/move-type-declarations.js","build":"npm run build-declarations && rollup -c","dev":"rollup -cw","test":"mocha --opts mocha.opts","prepublishOnly":"npm test && npm run build"},"license":"MIT","dependencies":{"is-reference":"^1.1.4"},"gitHead":"43017f235eb39e9582228c26f9811ed26000a1de","bugs":{"url":"https://github.com/Rich-Harris/periscopic/issues"},"homepage":"https://github.com/Rich-Harris/periscopic#readme","_id":"periscopic@2.0.1","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"shasum":"c6578152a83e76c5e09b11cd2fc6a97c1e8806cc","size":3942,"noattachment":false,"key":"/periscopic/-/periscopic-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/periscopic/download/periscopic-2.0.1.tgz"},"maintainers":[{"name":"rich_harris","email":""}],"_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/periscopic_2.0.1_1573511227125_0.64510566156433"},"_hasShrinkwrap":false,"publish_time":1573511227353,"_cnpm_publish_time":1573511227353},"2.0.0":{"name":"periscopic","description":"periscopic","version":"2.0.0","repository":{"type":"git","url":"git+https://github.com/Rich-Harris/periscopic.git"},"main":"dist/periscopic.js","module":"dist/periscopic.mjs","types":"types/index.d.ts","devDependencies":{"@types/estree":"0.0.39","@types/mocha":"^5.2.5","@types/node":"^10.9.4","acorn":"^7.0.0","estree-walker":"^0.8.1","mocha":"^5.2.0","rollup":"^0.65.2","rollup-plugin-sucrase":"^2.1.0","sander":"^0.6.0","sucrase":"^3.9.5","tiny-glob":"^0.2.6","typescript":"^3.6.2"},"scripts":{"build-declarations":"tsc -d && node scripts/move-type-declarations.js","build":"npm run build-declarations && rollup -c","dev":"rollup -cw","test":"mocha --opts mocha.opts","prepublishOnly":"npm test && npm run build"},"license":"MIT","dependencies":{"is-reference":"^1.1.4"},"gitHead":"d8a63f6f58578a10cf46d223f1067dfb5a142ad9","bugs":{"url":"https://github.com/Rich-Harris/periscopic/issues"},"homepage":"https://github.com/Rich-Harris/periscopic#readme","_id":"periscopic@2.0.0","_npmVersion":"6.5.0-next.0","_nodeVersion":"11.6.0","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"dist":{"shasum":"8c16c2298727e5621432de92c7bf9fbfdb2c2597","size":3941,"noattachment":false,"key":"/periscopic/-/periscopic-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/periscopic/download/periscopic-2.0.0.tgz"},"maintainers":[{"name":"rich_harris","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/periscopic_2.0.0_1573048635096_0.2685384826398769"},"_hasShrinkwrap":false,"publish_time":1573048635220,"_cnpm_publish_time":1573048635220},"1.1.0":{"name":"periscopic","description":"periscopic","version":"1.1.0","repository":{"type":"git","url":"git+https://github.com/Rich-Harris/periscopic.git"},"main":"dist/periscopic.js","module":"dist/periscopic.mjs","types":"types/index.d.ts","devDependencies":{"@types/estree":"0.0.39","@types/mocha":"^5.2.5","@types/node":"^10.9.4","acorn":"^7.0.0","estree-walker":"^0.8.1","mocha":"^5.2.0","rollup":"^0.65.2","rollup-plugin-sucrase":"^2.1.0","sander":"^0.6.0","sucrase":"^3.9.5","tiny-glob":"^0.2.6","typescript":"^3.6.2"},"scripts":{"build-declarations":"tsc -d && node scripts/move-type-declarations.js","build":"npm run build-declarations && rollup -c","dev":"rollup -cw","test":"mocha --opts mocha.opts","prepublishOnly":"npm test && npm run build"},"license":"MIT","dependencies":{"is-reference":"^1.1.4"},"gitHead":"9cc48fc7b6b73df6acfbe142d1ff3fe336f576de","bugs":{"url":"https://github.com/Rich-Harris/periscopic/issues"},"homepage":"https://github.com/Rich-Harris/periscopic#readme","_id":"periscopic@1.1.0","_npmVersion":"6.5.0-next.0","_nodeVersion":"11.6.0","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"dist":{"shasum":"bf098009499935f4b6775db810f116ed98f5478b","size":3782,"noattachment":false,"key":"/periscopic/-/periscopic-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/periscopic/download/periscopic-1.1.0.tgz"},"maintainers":[{"name":"rich_harris","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/periscopic_1.1.0_1572039070605_0.3509985370267765"},"_hasShrinkwrap":false,"publish_time":1572039070800,"_cnpm_publish_time":1572039070800},"1.0.2":{"name":"periscopic","description":"periscopic","version":"1.0.2","repository":{"type":"git","url":"git+https://github.com/Rich-Harris/periscopic.git"},"main":"dist/periscopic.js","module":"dist/periscopic.mjs","types":"types/index.d.ts","devDependencies":{"@types/mocha":"^5.2.5","@types/node":"^10.9.4","acorn":"^7.0.0","mocha":"^5.2.0","rollup":"^0.65.2","rollup-plugin-sucrase":"^2.1.0","sander":"^0.6.0","sucrase":"^3.9.5","tiny-glob":"^0.2.6","typescript":"^3.6.2"},"scripts":{"build-declarations":"tsc -d && node scripts/move-type-declarations.js","build":"npm run build-declarations && rollup -c","dev":"rollup -cw","test":"mocha --opts mocha.opts","prepublishOnly":"npm test && npm run build"},"license":"MIT","dependencies":{"is-reference":"^1.1.4"},"gitHead":"71b6a29b27d3e75fbcfe071ebfb4720e314086aa","bugs":{"url":"https://github.com/Rich-Harris/periscopic/issues"},"homepage":"https://github.com/Rich-Harris/periscopic#readme","_id":"periscopic@1.0.2","_npmVersion":"6.5.0-next.0","_nodeVersion":"11.6.0","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"dist":{"shasum":"bfbf1e24350709740a9318299a4081a753269f00","size":3553,"noattachment":false,"key":"/periscopic/-/periscopic-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/periscopic/download/periscopic-1.0.2.tgz"},"maintainers":[{"name":"rich_harris","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/periscopic_1.0.2_1571003684988_0.46039977597775983"},"_hasShrinkwrap":false,"publish_time":1571003685158,"_cnpm_publish_time":1571003685158},"1.0.1":{"name":"periscopic","description":"periscopic","version":"1.0.1","repository":{"type":"git","url":"git+https://github.com/Rich-Harris/periscopic.git"},"main":"dist/periscopic.js","module":"dist/periscopic.mjs","types":"types/index.d.ts","devDependencies":{"@types/mocha":"^5.2.5","@types/node":"^10.9.4","acorn":"^7.0.0","mocha":"^5.2.0","rollup":"^0.65.2","rollup-plugin-sucrase":"^2.1.0","sander":"^0.6.0","sucrase":"^3.9.5","tiny-glob":"^0.2.6","typescript":"^3.6.2"},"scripts":{"build-declarations":"tsc -d && node scripts/move-type-declarations.js","build":"npm run build-declarations && rollup -c","dev":"rollup -cw","test":"mocha --opts mocha.opts","prepublishOnly":"npm test && npm run build"},"license":"MIT","dependencies":{"is-reference":"^1.1.4"},"gitHead":"80e345d814f5d6b3409026ee145336ee64e1dc87","bugs":{"url":"https://github.com/Rich-Harris/periscopic/issues"},"homepage":"https://github.com/Rich-Harris/periscopic#readme","_id":"periscopic@1.0.1","_npmVersion":"6.5.0-next.0","_nodeVersion":"11.6.0","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"dist":{"shasum":"f57dc04ccf7eb885fdab9509f2e0b1a24bd33004","size":3526,"noattachment":false,"key":"/periscopic/-/periscopic-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/periscopic/download/periscopic-1.0.1.tgz"},"maintainers":[{"name":"rich_harris","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/periscopic_1.0.1_1569292401142_0.6981875028654667"},"_hasShrinkwrap":false,"publish_time":1569292401278,"_cnpm_publish_time":1569292401278},"1.0.0":{"name":"periscopic","description":"periscopic","version":"1.0.0","repository":{"type":"git","url":"git+https://github.com/Rich-Harris/periscopic.git"},"main":"dist/periscopic.js","module":"dist/periscopic.mjs","types":"types/index.d.ts","devDependencies":{"@types/mocha":"^5.2.5","@types/node":"^10.9.4","acorn":"^7.0.0","mocha":"^5.2.0","rollup":"^0.65.2","rollup-plugin-sucrase":"^2.1.0","sander":"^0.6.0","sucrase":"^3.9.5","tiny-glob":"^0.2.6","typescript":"^3.6.2"},"scripts":{"build-declarations":"tsc -d && node scripts/move-type-declarations.js","build":"npm run build-declarations && rollup -c","dev":"rollup -cw","test":"mocha --opts mocha.opts","prepublishOnly":"npm test && npm run build"},"license":"MIT","dependencies":{"is-reference":"^1.1.3"},"gitHead":"cc01f0cd86c8a78ec394a0aab136f7ee1fd05e15","bugs":{"url":"https://github.com/Rich-Harris/periscopic/issues"},"homepage":"https://github.com/Rich-Harris/periscopic#readme","_id":"periscopic@1.0.0","_npmVersion":"6.5.0-next.0","_nodeVersion":"11.6.0","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"dist":{"shasum":"3cc2077b82c4fd541dadd4eea6bb4f412dd36617","size":3490,"noattachment":false,"key":"/periscopic/-/periscopic-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/periscopic/download/periscopic-1.0.0.tgz"},"maintainers":[{"name":"rich_harris","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/periscopic_1.0.0_1567971282759_0.3236794841134858"},"_hasShrinkwrap":false,"publish_time":1567971282924,"_cnpm_publish_time":1567971282924}},"readme":"# periscopic\n\nUtility for analyzing scopes belonging to an ESTree-compliant AST.\n\n\n## API\n\n```js\nimport { analyze } from 'periscopic';\n\nconst ast = acorn.parse(`\nconst a = b;\nconsole.log(a);\n`);\n\nconst { map, globals, scope } = analyze(ast);\n```\n\n* `map` is a `WeakMap<Node, Scope>`, where the keys are the nodes of your AST that create a scope\n* `globals` is a `Map<string, Node>` of all the identifiers that are referenced without being declared anywhere in the program (in this case, `b` and `console`)\n* `scope` is the top-level `Scope` belonging to the program\n\n\n### Scope\n\nEach `Scope` instance has the following properties:\n\n* `scope.block` — true if the scope is created by a block statement (i.e. `let`, `const` and `class` are contained to it), false otherwise\n* `scope.parent` — the parent scope object\n* `scope.declarations` — a `Map<string, Node>` of all the variables declared in this scope, the node value referes to the declaration statement\n* `scope.initialised_declarations` — a `Set<string>` of all the variables declared and initialised in this scope\n* `scope.references` — a `Set<string>` of all the names referenced in this scope (or child scopes)\n\nIt also has two methods:\n\n* `scope.has(name)` — returns `true` if `name` is declared in this scope or an ancestor scope\n* `scope.find_owner(name)` — returns the scope object in which `name` is declared (or `null` if it is not declared)\n\n\n### `extract_identifiers` and `extract_names`\n\nThis package also exposes utilities for extracting the identifiers contained in a declaration or a function parameter:\n\n```js\nimport { extract_identifiers, extract_names } from 'periscopic';\n\nconst ast = acorn.parse(`\nconst { a, b: [c, d] = e } = opts;\n`);\n\nconst lhs = ast.body[0].declarations[0].id;\n\nextract_identifiers(lhs);\n/*\n[\n\t{ type: 'Identifier', name: 'a', start: 9, end: 10 },\n\t{ type: 'Identifier', name: 'c', start: 16, end: 17 },\n\t{ type: 'Identifier', name: 'd', start: 19, end: 20 }\n]\n*/\n\nextract_names(lhs);\n/*\n['a', 'c', 'd']\n*/\n```\n\n\n## License\n\n[MIT](LICENSE)","_attachments":{},"homepage":"https://github.com/Rich-Harris/periscopic#readme","bugs":{"url":"https://github.com/Rich-Harris/periscopic/issues"},"license":"MIT"}