{"_id":"parse-imports","_rev":"3337963","name":"parse-imports","description":"A blazing fast ES module imports parser.","dist-tags":{"latest":"2.1.1"},"maintainers":[{"name":"tomeraberbach","email":""}],"time":{"modified":"2024-07-10T08:08:46.000Z","created":"2020-06-04T23:31:20.132Z","2.1.1":"2024-07-04T01:02:25.028Z","2.1.0":"2024-06-24T00:29:03.934Z","2.0.0":"2024-06-23T02:17:51.994Z","1.2.0":"2024-05-12T23:20:07.827Z","1.1.2":"2023-07-03T03:26:37.916Z","1.1.1":"2023-05-03T01:02:34.128Z","1.1.0":"2021-06-17T17:16:40.209Z","1.0.0":"2021-06-02T04:28:43.309Z","0.0.5":"2021-01-02T01:16:12.784Z","0.0.4":"2020-06-13T02:40:46.751Z","0.0.3":"2020-06-05T22:57:04.010Z","0.0.2":"2020-06-05T22:53:00.676Z","0.0.1":"2020-06-04T23:31:20.132Z"},"users":{},"author":{"name":"Tomer Aberbach","email":"tomeraberbach@gmail.com","url":"https://tomeraberba.ch"},"repository":{"type":"git","url":"git+https://github.com/TomerAberbach/parse-imports.git"},"versions":{"2.1.1":{"name":"parse-imports","version":"2.1.1","author":{"name":"Tomer Aberbach","email":"tomeraberbach@gmail.com","url":"https://tomeraberba.ch"},"description":"A blazing fast ES module imports parser.","keywords":["esm","imports","module","parser","imports"],"homepage":"https://github.com/TomerAberbach/parse-imports","repository":{"type":"git","url":"git+https://github.com/TomerAberbach/parse-imports.git"},"bugs":{"url":"https://github.com/TomerAberbach/parse-imports/issues"},"license":"Apache-2.0","type":"module","engines":{"node":">= 18"},"exports":{"types":"./dist/index.d.ts","require":"./dist/index.cjs","import":"./dist/index.js"},"types":"./dist/index.d.ts","main":"./dist/index.cjs","module":"./dist/index.js","prettier":"tomer/prettier-config","dependencies":{"es-module-lexer":"^1.5.3","slashes":"^3.0.12"},"devDependencies":{"@types/jest":"^29.5.12","@types/node":"^20.14.8","eslint":"^8.57.0","jest":"^29.7.0","prettier":"^3.3.2","tomer":"^3.2.4","typescript":"^5.5.2"},"scripts":{"format":"tomer format","lint":"tomer lint","typecheck":"tomer typecheck","test":"tomer test","build":"tomer build","clean":"tomer clean dist"},"_id":"parse-imports@2.1.1","_integrity":"sha512-TDT4HqzUiTMO1wJRwg/t/hYk8Wdp3iF/ToMIlAoVQfL1Xs/sTxq1dKWSMjMbQmIarfWKymOyly40+zmPHXMqCA==","_resolved":"/private/var/folders/kn/41l_nk9568j6j0grkb3g35580000gn/T/d1c3eb9b6bc844dc6cf7a1af5b9672a5/parse-imports-2.1.1.tgz","_from":"file:parse-imports-2.1.1.tgz","_nodeVersion":"22.3.0","_npmVersion":"10.8.1","dist":{"shasum":"ce52141df24990065d72a446a364bffd595577f4","size":10054,"noattachment":false,"key":"/parse-imports/-/parse-imports-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-imports/download/parse-imports-2.1.1.tgz"},"_npmUser":{"name":"tomeraberbach","email":"tomeraberbach@gmail.com"},"directories":{},"maintainers":[{"name":"tomeraberbach","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-imports_2.1.1_1720054944784_0.996552668549213"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-07-04T01:02:25.028Z","publish_time":1720054945028,"_source_registry_name":"default","_cnpm_publish_time":1720054945028},"2.1.0":{"name":"parse-imports","version":"2.1.0","author":{"name":"Tomer Aberbach","email":"tomeraberbach@gmail.com","url":"https://tomeraberba.ch"},"description":"A blazing fast ES module imports parser.","keywords":["esm","imports","module","parser","imports"],"homepage":"https://github.com/TomerAberbach/parse-imports","repository":{"type":"git","url":"git+https://github.com/TomerAberbach/parse-imports.git"},"bugs":{"url":"https://github.com/TomerAberbach/parse-imports/issues"},"license":"Apache 2.0","type":"module","engines":{"node":">= 18"},"exports":{"types":"./dist/index.d.ts","require":"./dist/index.cjs","import":"./dist/index.js"},"types":"./dist/index.d.ts","main":"./dist/index.cjs","module":"./dist/index.js","prettier":"tomer/prettier-config","dependencies":{"es-module-lexer":"^1.5.3","slashes":"^3.0.12"},"devDependencies":{"@types/jest":"^29.5.12","@types/node":"^20.14.8","eslint":"^8.57.0","jest":"^29.7.0","prettier":"^3.3.2","tomer":"^3.2.4","typescript":"^5.5.2"},"scripts":{"format":"tomer format","lint":"tomer lint","typecheck":"tomer typecheck","test":"tomer test","build":"tomer build","clean":"tomer clean dist"},"_id":"parse-imports@2.1.0","_integrity":"sha512-JQWgmK2o4w8leUkZeZPatWdAny6vXGU/3siIUvMF6J2rDCud9aTt8h/px9oZJ6U3EcfhngBJ635uPFI0q0VAeA==","_resolved":"/private/var/folders/kn/41l_nk9568j6j0grkb3g35580000gn/T/e19ecd01f7f3d2e0f097af15b5510897/parse-imports-2.1.0.tgz","_from":"file:parse-imports-2.1.0.tgz","_nodeVersion":"22.1.0","_npmVersion":"10.7.0","dist":{"shasum":"22a152f4503da34e8fb89c902383895f59e93d2d","size":10050,"noattachment":false,"key":"/parse-imports/-/parse-imports-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-imports/download/parse-imports-2.1.0.tgz"},"_npmUser":{"name":"tomeraberbach","email":"tomeraberbach@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-imports_2.1.0_1719188943744_0.9520764883166315"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-06-24T00:29:03.934Z","publish_time":1719188943934,"_source_registry_name":"default","maintainers":[{"name":"tomeraberbach","email":""}],"_cnpm_publish_time":1719188943934},"2.0.0":{"name":"parse-imports","version":"2.0.0","author":{"name":"Tomer Aberbach","email":"tomeraberbach@gmail.com","url":"https://tomeraberba.ch"},"description":"A blazing fast ES module imports parser.","keywords":["esm","imports","module","parser","imports"],"homepage":"https://github.com/TomerAberbach/parse-imports","repository":{"type":"git","url":"git+https://github.com/TomerAberbach/parse-imports.git"},"bugs":{"url":"https://github.com/TomerAberbach/parse-imports/issues"},"license":"Apache 2.0","type":"module","engines":{"node":">= 18"},"exports":"./src/index.js","module":"./src/index.js","types":"./src/index.d.ts","prettier":"tomer/prettier-config","dependencies":{"es-module-lexer":"^1.5.3","slashes":"^3.0.12"},"devDependencies":{"@types/jest":"^29.5.12","@types/node":"^20.14.8","eslint":"^8.57.0","jest":"^29.7.0","prettier":"^3.3.2","tomer":"^3.2.4","typescript":"^5.5.2"},"scripts":{"format":"tomer format","lint":"tomer lint","typecheck":"tomer typecheck","test":"tomer test"},"_id":"parse-imports@2.0.0","_integrity":"sha512-3Dh6W2SPvs4k8neQG6fluUnVgt/WLDheepyD+FP1GlmOijKRBqr7Vhij0Cko6wyAp3tm/OHDDAniwFS0VCA0qQ==","_resolved":"/private/var/folders/kn/41l_nk9568j6j0grkb3g35580000gn/T/189aaad1b98e00d706a07654f5f25614/parse-imports-2.0.0.tgz","_from":"file:parse-imports-2.0.0.tgz","_nodeVersion":"22.1.0","_npmVersion":"10.7.0","dist":{"shasum":"8871c1fec92871fe29f04fded2e70fee956a16c6","size":10003,"noattachment":false,"key":"/parse-imports/-/parse-imports-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-imports/download/parse-imports-2.0.0.tgz"},"_npmUser":{"name":"tomeraberbach","email":"tomeraberbach@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-imports_2.0.0_1719109071832_0.5800930249217726"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-06-23T02:17:51.994Z","publish_time":1719109071994,"_source_registry_name":"default","maintainers":[{"name":"tomeraberbach","email":""}],"_cnpm_publish_time":1719109071994},"1.2.0":{"name":"parse-imports","version":"1.2.0","author":{"name":"Tomer Aberbach","email":"tomeraberbach@gmail.com","url":"https://tomeraberba.ch"},"description":"A blazing fast ES module imports parser.","keywords":["esm","imports","module","parser","imports"],"homepage":"https://github.com/TomerAberbach/parse-imports","repository":{"type":"git","url":"git+https://github.com/TomerAberbach/parse-imports.git"},"bugs":{"url":"https://github.com/TomerAberbach/parse-imports/issues"},"license":"Apache 2.0","type":"module","engines":{"node":">= 12.17"},"exports":"./src/index.js","module":"./src/index.js","types":"./src/index.d.ts","prettier":"tomer/prettier-config","dependencies":{"es-module-lexer":"^1.5.2","slashes":"^3.0.12"},"devDependencies":{"@types/jest":"^29.5.12","@types/node":"^20.12.11","eslint":"^8.57.0","jest":"^29.7.0","prettier":"^3.2.5","tomer":"^3.2.1","typescript":"^5.4.5"},"scripts":{"format":"tomer format","lint":"tomer lint","typecheck":"tomer typecheck","test":"tomer test"},"_id":"parse-imports@1.2.0","_integrity":"sha512-K5aG9cextqjAlyevwuSMjWPbBr+X8xGgfHS4VopbKC1u3jLndRGl2CoUHMTvuD6LIg4di5TzH/Pw9+XZyTjI/w==","_resolved":"/private/var/folders/kn/41l_nk9568j6j0grkb3g35580000gn/T/657a453a2f58b45b4aaf607b56e27b08/parse-imports-1.2.0.tgz","_from":"file:parse-imports-1.2.0.tgz","_nodeVersion":"21.7.3","_npmVersion":"10.5.0","dist":{"shasum":"46aeb86d827de4508aea6dfaaece4bc034e9aaa7","size":9260,"noattachment":false,"key":"/parse-imports/-/parse-imports-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-imports/download/parse-imports-1.2.0.tgz"},"_npmUser":{"name":"tomeraberbach","email":"tomeraberbach@gmail.com"},"directories":{},"maintainers":[{"name":"tomeraberbach","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-imports_1.2.0_1715556007600_0.27951301580385524"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-05-12T23:20:07.827Z","publish_time":1715556007827,"_source_registry_name":"default","_cnpm_publish_time":1715556007827},"1.1.2":{"name":"parse-imports","version":"1.1.2","author":{"name":"Tomer Aberbach","email":"tomeraberbach@gmail.com","url":"https://tomeraberba.ch"},"description":"A blazing fast ES module imports parser.","keywords":["esm","imports","module","parser","imports"],"homepage":"https://github.com/TomerAberbach/parse-imports","repository":{"type":"git","url":"git+https://github.com/TomerAberbach/parse-imports.git"},"bugs":{"url":"https://github.com/TomerAberbach/parse-imports/issues"},"license":"Apache 2.0","type":"module","engines":{"node":">= 12.17"},"exports":"./src/index.js","module":"./src/index.js","types":"./src/index.d.ts","prettier":"tomer/prettier-config","dependencies":{"es-module-lexer":"^1.3.0","slashes":"^3.0.12"},"devDependencies":{"@types/jest":"^29.5.2","@types/node":"^20.3.3","eslint":"^8.44.0","jest":"^29.5.0","prettier":"^2.8.8","tomer":"^2.0.6","typescript":"^5.1.6"},"scripts":{"format":"tomer format","lint":"tomer lint","typecheck":"tomer typecheck","test":"tomer test"},"_id":"parse-imports@1.1.2","_integrity":"sha512-UgTSNWlBvx+f4nxVSH3fOyJPJKol8GkFuG8mN8q9FqtmJgwaEx0azPRlXXX0klNlRxoP2gwme00TPDSm6rm/IA==","_resolved":"/private/var/folders/kn/41l_nk9568j6j0grkb3g35580000gn/T/8b66ff15bbfd70b0fd0280886cc38ab5/parse-imports-1.1.2.tgz","_from":"file:parse-imports-1.1.2.tgz","_nodeVersion":"20.3.0","_npmVersion":"9.6.7","dist":{"shasum":"8ca07540f81d1b0290cad17762fd40913976e503","size":9168,"noattachment":false,"key":"/parse-imports/-/parse-imports-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-imports/download/parse-imports-1.1.2.tgz"},"_npmUser":{"name":"tomeraberbach","email":"tomeraberbach@gmail.com"},"directories":{},"maintainers":[{"name":"tomeraberbach","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-imports_1.1.2_1688354797735_0.08088008158644056"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-03T03:26:37.916Z","publish_time":1688354797916,"_source_registry_name":"default","_cnpm_publish_time":1688354797916},"1.1.1":{"name":"parse-imports","version":"1.1.1","author":{"name":"Tomer Aberbach","email":"tomeraberbach@gmail.com","url":"https://tomeraberba.ch"},"description":"A blazing fast ES module imports parser.","keywords":["esm","imports","module","parser","imports"],"homepage":"https://github.com/TomerAberbach/parse-imports","repository":{"type":"git","url":"git+https://github.com/TomerAberbach/parse-imports.git"},"bugs":{"url":"https://github.com/TomerAberbach/parse-imports/issues"},"license":"Apache 2.0","type":"module","engines":{"node":">= 12.17"},"exports":"./src/index.js","module":"./src/index.js","types":"./src/index.d.ts","prettier":"tomer/prettier-config","dependencies":{"es-module-lexer":"^1.2.1","slashes":"^3.0.12"},"devDependencies":{"@types/jest":"^29.5.1","@types/node":"^18.16.3","eslint":"^8.39.0","jest":"^29.5.0","prettier":"^2.8.8","tomer":"^2.0.0","typescript":"^5.0.4"},"scripts":{"format":"tomer format","lint":"tomer lint","typecheck":"tomer typecheck","test":"tomer test"},"_id":"parse-imports@1.1.1","_integrity":"sha512-zaUWlM+jgoYfkh5+kUnRN9CTpvj6b1jzahSFYlfpSBbxbvPz4AWj49pjp9zODXZTfxHNHe88hzJubyeQjmnXPw==","_resolved":"/private/var/folders/kn/41l_nk9568j6j0grkb3g35580000gn/T/5480acbbce9985472a0ea8ba2bf27389/parse-imports-1.1.1.tgz","_from":"file:parse-imports-1.1.1.tgz","_nodeVersion":"20.0.0","_npmVersion":"9.6.4","dist":{"shasum":"901bd33ba347f78160db74401f4eb46f7c97f671","size":9169,"noattachment":false,"key":"/parse-imports/-/parse-imports-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-imports/download/parse-imports-1.1.1.tgz"},"_npmUser":{"name":"tomeraberbach","email":"tomeraberbach@gmail.com"},"directories":{},"maintainers":[{"name":"tomeraberbach","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-imports_1.1.1_1683075753950_0.6302428955431993"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-03T01:02:34.128Z","publish_time":1683075754128,"_source_registry_name":"default","_cnpm_publish_time":1683075754128},"1.1.0":{"name":"parse-imports","version":"1.1.0","author":{"name":"Tomer Aberbach","email":"tomeraberbach@gmail.com","url":"https://tomeraberba.ch"},"description":"A blazing fast ES module imports parser.","keywords":["esm","imports","module","parser","imports"],"homepage":"https://github.com/TomerAberbach/parse-imports","repository":{"type":"git","url":"git+https://github.com/TomerAberbach/parse-imports.git"},"bugs":{"url":"https://github.com/TomerAberbach/parse-imports/issues"},"license":"Apache 2.0","type":"module","engines":{"node":">= 12.17"},"browserslist":["defaults","not IE 11","not op_mini all"],"exports":"./src/index.js","module":"./src/index.js","types":"./src/index.d.ts","prettier":"@tomer/prettier-config","eslintConfig":{"extends":"@tomer"},"lint-staged":{"*.js":["addlicense","run-s \"lint:prettier:base -- --write {@}\" --","run-s \"lint:eslint:base -- --fix {@}\" --"],"*.ts":["addlicense","run-s \"lint:prettier:base -- --write {@}\" --"],"*.{json,yml,md}":"run-s \"lint:prettier:base -- --write {@}\" --"},"tsd":{"directory":"./test"},"commitlint":{"extends":"@commitlint/config-conventional"},"simple-git-hooks":{"pre-commit":"pnpx --no-install lint-staged","commit-msg":"pnpx --no-install commitlint -e"},"dependencies":{"es-module-lexer":"0.4.1","slashes":"2.0.2"},"devDependencies":{"@commitlint/cli":"12.1.4","@commitlint/config-conventional":"12.1.4","@tomer/eslint-config":"0.1.1","@tomer/prettier-config":"0.1.0","ava":"3.15.0","ava-fast-check":"4.0.2","c8":"7.7.2","eslint":"7.27.0","fast-check":"2.14.0","lint-staged":"11.0.0","npm-run-all":"4.1.5","prettier":"2.3.0","shift-codegen":"7.0.3","shift-fuzzer":"1.0.2","simple-git-hooks":"2.4.1","tsd":"0.15.1","typescript":"4.3.2"},"scripts":{"license":"addlicense $(git diff --name-only HEAD)","lint:prettier:base":"prettier --loglevel silent --ignore-path .eslintignore","lint:prettier":"run-s \"lint:prettier:base -- --write .\"","lint:eslint:base":"eslint --cache --ext js --ignore-path .eslintignore","lint:eslint":"run-s \"lint:eslint:base -- --fix .\"","lint":"run-s lint:*","test:js":"ava","test:ts":"tsd","test":"run-s test:*","coverage":"c8 run-s test:js"},"gitHead":"64f4902a401ad056e77d6da5413175a1897b6143","_id":"parse-imports@1.1.0","_nodeVersion":"16.1.0","_npmVersion":"7.12.1","dist":{"shasum":"39a694f293537342eb556d2e5936a2e9893289bb","size":9521,"noattachment":false,"key":"/parse-imports/-/parse-imports-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-imports/download/parse-imports-1.1.0.tgz"},"_npmUser":{"name":"tomeraberbach","email":"tomeraberbach@gmail.com"},"directories":{},"maintainers":[{"name":"tomeraberbach","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-imports_1.1.0_1623950200065_0.5924577390889874"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T15:22:47.868Z","publish_time":1623950200209,"_cnpm_publish_time":1623950200209},"1.0.0":{"name":"parse-imports","version":"1.0.0","author":{"name":"Tomer Aberbach","email":"tomeraberbach@gmail.com","url":"https://tomeraberba.ch"},"description":"A blazing fast ES module imports parser.","keywords":["esm","imports","module","parser","imports"],"homepage":"https://github.com/TomerAberbach/parse-imports","repository":{"type":"git","url":"git+https://github.com/TomerAberbach/parse-imports.git"},"bugs":{"url":"https://github.com/TomerAberbach/parse-imports/issues"},"license":"Apache 2.0","type":"module","engines":{"node":">= 12.17"},"browserslist":["defaults","not IE 11","not op_mini all"],"exports":"./src/index.js","module":"./src/index.js","types":"./src/index.d.ts","prettier":"@tomer/prettier-config","eslintConfig":{"extends":"@tomer"},"lint-staged":{"*.js":["addlicense","run-s \"lint:prettier:base -- --write {@}\" --","run-s \"lint:eslint:base -- --fix {@}\" --"],"*.ts":"run-s \"lint:prettier:base -- --write {@}\" --","*.{json,yml,md}":"run-s \"lint:prettier:base -- --write {@}\" --"},"tsd":{"directory":"./test"},"commitlint":{"extends":"@commitlint/config-conventional"},"simple-git-hooks":{"pre-commit":"pnpx --no-install lint-staged","commit-msg":"pnpx --no-install commitlint -e"},"dependencies":{"es-module-lexer":"0.4.1","slashes":"2.0.2"},"devDependencies":{"@commitlint/cli":"12.1.4","@commitlint/config-conventional":"12.1.4","@tomer/eslint-config":"0.1.1","@tomer/prettier-config":"0.1.0","ava":"3.15.0","ava-fast-check":"4.0.2","c8":"7.7.2","eslint":"7.27.0","fast-check":"2.14.0","lint-staged":"11.0.0","npm-run-all":"4.1.5","prettier":"2.3.0","shift-codegen":"7.0.3","shift-fuzzer":"1.0.2","simple-git-hooks":"2.4.1","tsd":"0.15.1","typescript":"4.3.2"},"scripts":{"license":"addlicense $(git diff --name-only HEAD)","lint:prettier:base":"prettier --loglevel silent --ignore-path .eslintignore","lint:prettier":"run-s \"lint:prettier:base -- --write .\"","lint:eslint:base":"eslint --cache --ext js --ignore-path .eslintignore","lint:eslint":"run-s \"lint:eslint:base -- --fix .\"","lint":"run-s lint:*","test:js":"ava","test:ts":"tsd","test":"run-s test:*","coverage":"c8 run-s test:js"},"gitHead":"dd3eb296a89a10808a30ef18f8e1e2c69516b1ca","_id":"parse-imports@1.0.0","_nodeVersion":"16.1.0","_npmVersion":"7.12.1","dist":{"shasum":"81d88a188943ac9748168f84421de4fa41210814","size":9363,"noattachment":false,"key":"/parse-imports/-/parse-imports-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-imports/download/parse-imports-1.0.0.tgz"},"_npmUser":{"name":"tomeraberbach","email":"tomeraberbach@gmail.com"},"directories":{},"maintainers":[{"name":"tomeraberbach","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-imports_1.0.0_1622608123204_0.22319245078427308"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T15:22:47.009Z","publish_time":1622608123309,"_cnpm_publish_time":1622608123309},"0.0.5":{"name":"parse-imports","version":"0.0.5","author":{"name":"Tomer Aberbach","email":"tomeraberbach@gmail.com","url":"https://tomeraberba.ch"},"description":"A blazing fast ES module imports parser.","keywords":["esm","imports","module","parser","imports"],"homepage":"https://github.com/TomerAberbach/parse-imports","repository":{"type":"git","url":"git+https://github.com/TomerAberbach/parse-imports.git"},"bugs":{"url":"https://github.com/TomerAberbach/parse-imports/issues"},"license":"Apache 2.0","main":"dist/main/index.js","module":"dist/module/index.js","scripts":{"license":"addlicense $(git diff --name-only HEAD)","lint:eslint:base":"eslint --cache --ext mjs,cjs,js --ignore-path .gitignore --ignore-pattern \"**/fixtures/**/*\"","lint:eslint":"pnpm run lint:eslint:base -- --fix .","lint:prettier:base":"prettier --loglevel silent","lint:prettier":"pnpm run lint:prettier:base -- --write .","lint":"run-s lint:*","test":"ava","build:base":"babel --delete-dir-on-start -D --no-copy-ignored --keep-file-extension --ignore \"src/**/*.test.js,src/**/fixtures/**/*\"","build:dev":"pnpm run build:base -- -d dist src","build:main":"cross-env NODE_ENV=main pnpm run build:base -- -d dist/main src","build:module":"cross-env NODE_ENV=module pnpm run build:base -- -d dist/module src","build:prod":"run-p build:main build:module","clean":"rimraf dist"},"eslintConfig":{"extends":"@tomer"},"prettier":"@tomer/prettier-config","browserslist":["node >= 10"],"commitlint":{"extends":"@commitlint/config-conventional"},"husky":{"hooks":{"pre-commit":"lint-staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-push":"pnpm run test"}},"ava":{"babel":true,"require":["@babel/register"],"files":["**/{*.,}test.js"]},"dependencies":{"es-module-lexer":"0.3.26","slashes":"2.0.2"},"devDependencies":{"@ava/babel":"1.0.1","@babel/cli":"7.12.10","@babel/core":"7.12.10","@babel/preset-env":"7.12.11","@babel/register":"7.12.10","@commitlint/cli":"11.0.0","@commitlint/config-conventional":"11.0.0","@tomer/eslint-config":"0.0.14","@tomer/prettier-config":"0.0.2","@types/node":"14.14.19","ava":"3.15.0","ava-fast-check":"4.0.0","babel-eslint":"10.1.0","babel-plugin-unassert":"3.0.1","babel-preset-power-assert":"3.0.0","command-exists":"1.2.9","cross-env":"7.0.3","eslint":"7.16.0","fast-check":"2.10.0","husky":"4.3.6","lint-staged":"10.5.3","npm-run-all":"4.1.5","power-assert":"1.6.1","prettier":"2.2.1","rimraf":"3.0.2","shift-codegen":"7.0.3","shift-fuzzer":"1.0.2"},"engines":{"node":">= 10"},"gitHead":"0fc879bd8ece5f9129b58883be278196cc56c8cd","_id":"parse-imports@0.0.5","_nodeVersion":"15.3.0","_npmVersion":"6.14.8","dist":{"shasum":"80e505b9558d6fa8d760b9f0be64f42f65bf4d17","size":10550,"noattachment":false,"key":"/parse-imports/-/parse-imports-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-imports/download/parse-imports-0.0.5.tgz"},"_npmUser":{"name":"tomeraberbach","email":"tomeraberbach@gmail.com"},"directories":{},"maintainers":[{"name":"tomeraberbach","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-imports_0.0.5_1609550172596_0.9305100507371993"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T15:22:46.131Z","publish_time":1609550172784,"_cnpm_publish_time":1609550172784},"0.0.4":{"name":"parse-imports","version":"0.0.4","author":{"name":"Tomer Aberbach","email":"tomeraberbach@gmail.com","url":"https://tomeraberba.ch"},"description":"A blazing fast ES module imports parser.","keywords":["esm","imports","module","parser","imports"],"homepage":"https://github.com/TomerAberbach/parse-imports","repository":{"type":"git","url":"git+https://github.com/TomerAberbach/parse-imports.git"},"bugs":{"url":"https://github.com/TomerAberbach/parse-imports/issues"},"license":"Apache 2.0","main":"dist/main/index.js","module":"dist/module/index.js","scripts":{"license":"addlicense $(git diff --name-only HEAD)","lint:eslint:base":"eslint --cache --ext mjs,cjs,js --ignore-path .gitignore --ignore-pattern \"**/fixtures/**/*\"","lint:eslint":"pnpm run lint:eslint:base -- --fix .","lint:prettier:base":"prettier --loglevel silent","lint:prettier":"pnpm run lint:prettier:base -- --write .","lint":"run-s lint:*","test":"ava","build:base":"babel --delete-dir-on-start -D --no-copy-ignored --keep-file-extension --ignore \"src/**/*.test.js,src/**/fixtures/**/*\"","build:dev":"pnpm run build:base -- -d dist src","build:main":"cross-env NODE_ENV=main pnpm run build:base -- -d dist/main src","build:module":"cross-env NODE_ENV=module pnpm run build:base -- -d dist/module src","build:prod":"run-p build:main build:module","clean":"rimraf dist"},"eslintConfig":{"extends":"@tomer"},"prettier":"@tomer/prettier-config","browserslist":["node >= 10"],"dependencies":{"es-module-lexer":"0.3.20","slashes":"2.0.2"},"devDependencies":{"@ava/babel":"1.0.1","@babel/cli":"7.10.1","@babel/core":"7.10.2","@babel/preset-env":"7.10.2","@babel/register":"7.10.1","@commitlint/cli":"8.3.5","@commitlint/config-conventional":"8.3.4","@tomer/eslint-config":"0.0.4","@tomer/prettier-config":"0.0.2","@types/node":"14.0.11","ava":"3.8.2","ava-fast-check":"1.1.2","babel-eslint":"10.1.0","babel-plugin-unassert":"3.0.1","babel-preset-power-assert":"3.0.0","command-exists":"1.2.9","cross-env":"7.0.2","eslint":"7.1.0","fast-check":"1.24.2","get-all-files":"2.0.1","husky":"4.2.5","lint-staged":"10.2.7","microbundle":"0.12.0","npm-run-all":"4.1.5","power-assert":"1.6.1","prettier":"2.0.5","rimraf":"3.0.2","shift-codegen":"7.0.0","shift-fuzzer":"1.0.2"},"engines":{"node":">= 10"},"gitHead":"b9e410013cbde7fc04de1668eb6dffe9ce6b2a60","_id":"parse-imports@0.0.4","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"shasum":"02a29988aa7bc6ebd533e5f09f9dfad19044a9dd","size":10458,"noattachment":false,"key":"/parse-imports/-/parse-imports-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-imports/download/parse-imports-0.0.4.tgz"},"maintainers":[{"name":"tomeraberbach","email":""}],"_npmUser":{"name":"tomeraberbach","email":"tomeraberbach@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-imports_0.0.4_1592016046245_0.7545353811942488"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T15:22:46.029Z","publish_time":1592016046751,"_cnpm_publish_time":1592016046751},"0.0.3":{"name":"parse-imports","version":"0.0.3","author":{"name":"Tomer Aberbach","email":"tomeraberbach@gmail.com","url":"https://tomeraberba.ch"},"description":"A blazing fast ES module imports parser.","keywords":["esm","imports","module","parser","imports"],"homepage":"https://github.com/TomerAberbach/parse-imports","repository":{"type":"git","url":"git+https://github.com/TomerAberbach/parse-imports.git"},"bugs":{"url":"https://github.com/TomerAberbach/parse-imports/issues"},"license":"Apache 2.0","main":"dist/main/index.js","module":"dist/module/index.js","scripts":{"license":"addlicense $(git diff --name-only HEAD)","lint:eslint:base":"eslint -c ./eslint.config.js --cache --ext mjs,cjs,js --ignore-path .gitignore --ignore-pattern \"**/fixtures/**/*\"","lint:eslint":"pnpm run lint:eslint:base -- --fix .","lint:prettier:base":"prettier --loglevel silent","lint:prettier":"pnpm run lint:prettier:base -- --write .","lint":"run-s lint:*","test":"ava","build:base":"babel --delete-dir-on-start -D --no-copy-ignored --keep-file-extension --ignore \"src/**/*.test.js,src/**/fixtures/**/*\"","build:dev":"pnpm run build:base -- -d dist src","build:main":"cross-env NODE_ENV=main pnpm run build:base -- -d dist/main src","build:module":"cross-env NODE_ENV=module pnpm run build:base -- -d dist/module src","build:prod":"run-p build:main build:module","clean":"rimraf dist"},"dependencies":{"es-module-lexer":"0.3.20","slashes":"2.0.2"},"devDependencies":{"@ava/babel":"1.0.1","@babel/cli":"7.10.1","@babel/core":"7.10.2","@babel/preset-env":"7.10.2","@babel/register":"7.10.1","@commitlint/cli":"8.3.5","@commitlint/config-conventional":"8.3.4","ava":"3.8.2","ava-fast-check":"1.1.2","babel-eslint":"10.1.0","babel-plugin-unassert":"3.0.1","babel-preset-power-assert":"3.0.0","command-exists":"1.2.9","cross-env":"7.0.2","eslint":"7.1.0","eslint-config-prettier":"6.11.0","eslint-plugin-ava":"10.3.0","eslint-plugin-prettier":"3.1.3","fast-check":"1.24.2","get-all-files":"2.0.1","husky":"4.2.5","lint-staged":"10.2.7","microbundle":"0.12.0","npm-run-all":"4.1.5","power-assert":"1.6.1","prettier":"2.0.5","rimraf":"3.0.2","shift-codegen":"7.0.0","shift-fuzzer":"1.0.2"},"engines":{"node":">= 10"},"gitHead":"fd6e2e89ef737715089615d0445e18557ae4caf6","_id":"parse-imports@0.0.3","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"shasum":"ded72e1be4e57174f745a4f047cce9653bdc69b8","size":10410,"noattachment":false,"key":"/parse-imports/-/parse-imports-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-imports/download/parse-imports-0.0.3.tgz"},"maintainers":[{"name":"tomeraberbach","email":""}],"_npmUser":{"name":"tomeraberbach","email":"tomeraberbach@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-imports_0.0.3_1591397823875_0.28129714168790243"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T15:22:45.118Z","publish_time":1591397824010,"_cnpm_publish_time":1591397824010},"0.0.2":{"name":"parse-imports","version":"0.0.2","author":{"name":"Tomer Aberbach","email":"tomeraberbach@gmail.com","url":"https://tomeraberba.ch"},"description":"A blazing fast ES module imports parser.","keywords":["esm","imports","module","parser","imports"],"homepage":"https://github.com/TomerAberbach/parse-imports","repository":{"type":"git","url":"git+https://github.com/TomerAberbach/parse-imports.git"},"bugs":{"url":"https://github.com/TomerAberbach/parse-imports/issues"},"license":"Apache 2.0","main":"dist/main/index.js","module":"dist/module/index.js","scripts":{"license":"addlicense $(git diff --name-only HEAD)","lint:eslint:base":"eslint -c ./eslint.config.js --cache --ext mjs,cjs,js --ignore-path .gitignore --ignore-pattern \"**/fixtures/**/*\"","lint:eslint":"pnpm run lint:eslint:base -- --fix .","lint:prettier:base":"prettier --loglevel silent","lint:prettier":"pnpm run lint:prettier:base -- --write .","lint":"run-s lint:*","test":"ava","build:base":"babel --delete-dir-on-start -D --no-copy-ignored --keep-file-extension --ignore \"src/**/*.test.js,src/**/fixtures/**/*\"","build:dev":"pnpm run build:base -- -d dist src","build:main":"cross-env NODE_ENV=main pnpm run build:base -- -d dist/main src","build:module":"cross-env NODE_ENV=module pnpm run build:base -- -d dist/module src","build:prod":"run-p build:main build:module","clean":"rimraf dist"},"dependencies":{"es-module-lexer":"0.3.20","slashes":"2.0.2"},"devDependencies":{"@ava/babel":"1.0.1","@babel/cli":"7.10.1","@babel/core":"7.10.2","@babel/preset-env":"7.10.2","@babel/register":"7.10.1","@commitlint/cli":"8.3.5","@commitlint/config-conventional":"8.3.4","ava":"3.8.2","ava-fast-check":"1.1.2","babel-eslint":"10.1.0","babel-plugin-unassert":"3.0.1","babel-preset-power-assert":"3.0.0","command-exists":"1.2.9","cross-env":"7.0.2","eslint":"7.1.0","eslint-config-prettier":"6.11.0","eslint-plugin-ava":"10.3.0","eslint-plugin-prettier":"3.1.3","fast-check":"1.24.2","get-all-files":"2.0.1","husky":"4.2.5","lint-staged":"10.2.7","microbundle":"0.12.0","npm-run-all":"4.1.5","power-assert":"1.6.1","prettier":"2.0.5","rimraf":"3.0.2","shift-codegen":"7.0.0","shift-fuzzer":"1.0.2"},"engines":{"node":">= 10"},"gitHead":"81f282fc154c663e4c61b46450dc4427cb711d75","_id":"parse-imports@0.0.2","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"shasum":"345d24577482d0b1d1298dd894d639d90ca5296c","size":10406,"noattachment":false,"key":"/parse-imports/-/parse-imports-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-imports/download/parse-imports-0.0.2.tgz"},"maintainers":[{"name":"tomeraberbach","email":""}],"_npmUser":{"name":"tomeraberbach","email":"tomeraberbach@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-imports_0.0.2_1591397580523_0.20140386701606205"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T15:22:44.221Z","publish_time":1591397580676,"_cnpm_publish_time":1591397580676},"0.0.1":{"name":"parse-imports","version":"0.0.1","author":{"name":"Tomer Aberbach","email":"tomeraberbach@gmail.com","url":"https://tomeraberba.ch"},"description":"A blazing fast ES module imports parser.","keywords":["esm","imports","module","parser","imports"],"homepage":"https://github.com/TomerAberbach/parse-imports","repository":{"type":"git","url":"git+https://github.com/TomerAberbach/parse-imports.git"},"bugs":{"url":"https://github.com/TomerAberbach/parse-imports/issues"},"license":"Apache 2.0","main":"dist/main/index.js","module":"dist/module/index.js","scripts":{"license":"addlicense $(git diff --name-only HEAD)","lint:eslint:base":"eslint -c ./eslint.config.js --cache --ext mjs,cjs,js --ignore-path .gitignore --ignore-pattern \"**/fixtures/**/*\"","lint:eslint":"pnpm run lint:eslint:base -- --fix .","lint:prettier:base":"prettier --loglevel silent","lint:prettier":"pnpm run lint:prettier:base -- --write .","lint":"run-s lint:*","test":"ava","build:base":"babel --delete-dir-on-start -D --no-copy-ignored --keep-file-extension --ignore \"src/**/*.test.js,src/**/fixtures/**/*\"","build:dev":"pnpm run build:base -- -d dist src","build:main":"cross-env NODE_ENV=main pnpm run build:base -- -d dist/main src","build:module":"cross-env NODE_ENV=module pnpm run build:base -- -d dist/module src","build:prod":"run-p build:main build:module","clean":"rimraf dist"},"dependencies":{"es-module-lexer":"0.3.20","slashes":"2.0.2"},"devDependencies":{"@ava/babel":"1.0.1","@babel/cli":"7.10.1","@babel/core":"7.10.2","@babel/preset-env":"7.10.2","@babel/register":"7.10.1","@commitlint/cli":"8.3.5","@commitlint/config-conventional":"8.3.4","ava":"3.8.2","ava-fast-check":"1.1.2","babel-eslint":"10.1.0","babel-plugin-unassert":"3.0.1","babel-preset-power-assert":"3.0.0","command-exists":"1.2.9","cross-env":"7.0.2","eslint":"7.1.0","eslint-config-prettier":"6.11.0","eslint-plugin-ava":"10.3.0","eslint-plugin-prettier":"3.1.3","fast-check":"1.24.2","get-all-files":"2.0.1","husky":"4.2.5","lint-staged":"10.2.7","microbundle":"0.12.0","npm-run-all":"4.1.5","power-assert":"1.6.1","prettier":"2.0.5","rimraf":"3.0.2","shift-codegen":"7.0.0","shift-fuzzer":"1.0.2"},"engines":{"node":">= 10"},"gitHead":"39d8b73a10a8d3f32ce8a2b800f184d40053b1fc","_id":"parse-imports@0.0.1","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"shasum":"c0ca82eda3137ec040b70a556e402ad1df9d6cac","size":10244,"noattachment":false,"key":"/parse-imports/-/parse-imports-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-imports/download/parse-imports-0.0.1.tgz"},"maintainers":[{"name":"tomeraberbach","email":""}],"_npmUser":{"name":"tomeraberbach","email":"tomeraberbach@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-imports_0.0.1_1591313479909_0.6527962462606216"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T15:22:43.344Z","publish_time":1591313480132,"_cnpm_publish_time":1591313480132}},"readme":"<h1 align=\"center\">\n  parse-imports\n</h1>\n\n<div align=\"center\">\n  <a href=\"https://npmjs.org/package/parse-imports\">\n    <img src=\"https://badgen.net/npm/v/parse-imports\" alt=\"version\" />\n  </a>\n  <a href=\"https://github.com/TomerAberbach/parse-imports/actions\">\n    <img src=\"https://github.com/TomerAberbach/parse-imports/workflows/CI/badge.svg\" alt=\"CI\" />\n  </a>\n  <a href=\"https://unpkg.com/parse-imports/dist/index.js\">\n    <img src=\"https://deno.bundlejs.com/?q=parse-imports&badge\" alt=\"gzip size\" />\n  </a>\n  <a href=\"https://unpkg.com/parse-imports/dist/index.js\">\n    <img src=\"https://deno.bundlejs.com/?q=parse-imports&config={%22compression%22:{%22type%22:%22brotli%22}}&badge\" alt=\"brotli size\" />\n  </a>\n  <a href=\"https://github.com/sponsors/TomerAberbach\">\n    <img src=\"https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86\" alt=\"Sponsor\" />\n  </a>\n</div>\n\n<div align=\"center\">\n  A blazing fast ES module imports parser.\n</div>\n\n## Features\n\n- Uses the superb WASM-based\n  [`es-module-lexer`](https://github.com/guybedford/es-module-lexer) under the\n  hood\n- Identifies module specifier types (e.g. relative file import, package import,\n  builtin import, etc.)\n- Unescapes module specifier escape sequences\n- Collects default, named, and namespace imports\n- Works with dynamic imports\n- Resolves module specifier paths via `require.resolve`\n\n## Install\n\n```sh\n$ npm i parse-imports\n```\n\n## Usage\n\n```js\nimport { parseImports } from 'parse-imports'\n\nconst code = `\n  import a from 'b'\n  import * as c from './d'\n  import { e as f, g as h, i } from '/j'\n  import k, { l as m } from 'n'\n  import o, * as p from \"./q\"\n  import r, { s as t, u } from \"/v\"\n  import fs from 'fs'\n\n  ;(async () => {\n    await import(\"w\")\n    await import(\"x\" + \"y\")\n  })()\n`\n\n// Lazily iterate over iterable of imports\nfor (const $import of await parseImports(code)) {\n  console.log($import)\n}\n\n// Or get as an array of imports\nconst imports = [...(await parseImports(code))]\n\nconsole.log(imports[0])\n//=>\n// {\n//   startIndex: 3,\n//   endIndex: 20,\n//   isDynamicImport: false,\n//   moduleSpecifier: {\n//     type: 'package',\n//     startIndex: 17,\n//     endIndex: 20,\n//     isConstant: true,\n//     code: `'b'`,\n//     value: 'b',\n//     resolved: undefined\n//   },\n//   importClause: {\n//     default: 'a',\n//     named: [],\n//     namespace: undefined\n//   }\n// }\n\nconsole.log(imports[1])\n//=>\n// {\n//   startIndex: 23,\n//   endIndex: 47,\n//   isDynamicImport: false,\n//   moduleSpecifier: {\n//     type: 'relative',\n//     startIndex: 42,\n//     endIndex: 47,\n//     isConstant: true,\n//     code: `'./d'`,\n//     value: './d',\n//     resolved: undefined\n//   },\n//   importClause: {\n//     default: undefined,\n//     named: [],\n//     namespace: 'c'\n//   }\n// }\n\nconsole.log(imports[5])\n//=>\n// {\n//   startIndex: 153,\n//   endIndex: 186,\n//   isDynamicImport: false,\n//   moduleSpecifier: {\n//     type: 'absolute',\n//     startIndex: 182,\n//     endIndex: 186,\n//     isConstant: true,\n//     code: '\"/v\"',\n//     value: '/v',\n//     resolved: undefined\n//   },\n//   importClause: {\n//     default: 'r',\n//     named: [\n//       { specifier: 's', binding: 't' },\n//       { specifier: 'u', binding: 'u' }\n//     ],\n//     namespace: undefined\n//   }\n// }\n\nconsole.log(imports[7])\n//=>\n// {\n//   startIndex: 238,\n//   endIndex: 249,\n//   isDynamicImport: true,\n//   moduleSpecifier: {\n//     type: 'package',\n//     startIndex: 245,\n//     endIndex: 248,\n//     isConstant: true,\n//     code: '\"w\"',\n//     value: 'w',\n//     resolved: undefined\n//   },\n//   importClause: undefined\n// }\n\nconsole.log(imports[8])\n//=>\n// {\n//   startIndex: 260,\n//   endIndex: 277,\n//   isDynamicImport: true,\n//   moduleSpecifier: {\n//     type: 'unknown',\n//     startIndex: 267,\n//     endIndex: 276,\n//     isConstant: false,\n//     code: '\"x\" + \"y\"',\n//     value: undefined,\n//     resolved: undefined\n//   },\n//   importClause: undefined\n// }\n```\n\n## API\n\nUse `parseImports` when you're able to await a `Promise` result and\n`parseImportsSync` otherwise.\n\n> [!IMPORTANT]\n>\n> You can only call `parseImportsSync` once the WASM has loaded. You can be sure\n> this has happened by awaiting the exported `wasmLoadPromise`.\n\nSee the [type definitions](./src/index.d.ts) for details.\n\n### Types\n\n<!-- eslint-skip -->\n\n```ts\ntype ModuleSpecifierType =\n  | 'invalid'\n  | 'absolute'\n  | 'relative'\n  | 'builtin'\n  | 'package'\n  | 'unknown'\n\ntype Import = {\n  startIndex: number\n  endIndex: number\n  isDynamicImport: boolean\n  moduleSpecifier: {\n    type: ModuleSpecifierType\n    startIndex: number\n    endIndex: number\n    isConstant: boolean\n    code: string\n    value?: string\n    resolved?: string\n  }\n  importClause?: {\n    default?: string\n    named: string[]\n    namespace?: string\n  }\n}\n```\n\n#### `Import`\n\n`code.substring(startIndex, endIndex)` returns the full import statement or\nexpression.\n`code.substring(moduleSpecifier.startIndex, moduleSpecifier.endIndex)` returns\nthe module specifier including quotes.\n\n`moduleSpecifier.isConstant` is `true` when the import is not a dynamic import\n(`isDynamicImport` is `false`), or when the import is a dynamic import where the\nspecifier is a simple string literal (e.g. `import('fs')`, `import(\"fs\")`,\n``import(`fs`)``).\n\nIf `moduleSpecifier.isConstant` is `false`, then `moduleSpecifier.type` is\n`'unknown'`. Otherwise, it is set according to the following rules:\n\n- `'invalid'` if the module specifier is the empty string\n- `'absolute'` if the module specifier is an absolute file path\n- `'relative'` if the module specifier is a relative file path\n- `'builtin'` if the module specifier is the name of a builtin Node.js package\n- `'package'` otherwise\n\n`moduleSpecifier.code` is the module specifier as it was written in the code.\nFor non-constant dynamic imports it could be a complex expression.\n\n`moduleSpecifier.value` is `moduleSpecifier.code` without string literal quotes\nand unescaped if `moduleSpecifier.isConstant` is `true`. Otherwise, it is\n`undefined`.\n\n`moduleSpecifier.resolved` is set if the `resolveFrom` option is set and\n`moduleSpecifier.value` is not `undefined`.\n\n`importClause` is only `undefined` if `isDynamicImport` is `true`.\n\n`importClause.default` is the default import identifier or `undefined` if the\nimport statement does not have a default import.\n\n`importClause.named` is the array of objects representing the named imports of\nthe import statement. It is empty if the import statement does not have any\nnamed imports. Each object in the array has a `specifier` field set to the\nimported identifier and a `binding` field set to the identifier for accessing\nthe imported value. For example, `import { a, x as y } from 'something'` would\nhave the following array for `importClause.named`:\n`[{ specifier: 'a', binding: 'a' }, { specifier: 'x', binding: 'y' }]`.\n\n`importClause.namespace` is the namespace import identifier or `undefined` if\nthe import statement does not have a namespace import.\n\n## Contributing\n\nStars are always welcome!\n\nFor bugs and feature requests,\n[please create an issue](https://github.com/TomerAberbach/parse-imports/issues/new).\n\n## License\n\n[MIT](https://github.com/TomerAberbach/parse-imports/blob/main/license-mit) ©\n[Tomer Aberbach](https://github.com/TomerAberbach) \\\n[Apache 2.0](https://github.com/TomerAberbach/parse-imports/blob/main/license-apache) ©\n[Google](https://github.com/TomerAberbach/parse-imports/blob/main/notice-apache)\n","_attachments":{},"homepage":"https://github.com/TomerAberbach/parse-imports","bugs":{"url":"https://github.com/TomerAberbach/parse-imports/issues"},"license":"Apache-2.0"}