{"_id":"lookpath","_rev":"4607761","name":"lookpath","description":"The minimum and most straightforward way to check if command exists and where the executable is.","dist-tags":{"latest":"1.2.3"},"maintainers":[{"name":"otiai10","email":"otiai10@gmail.com"}],"time":{"modified":"2026-04-10T17:45:07.000Z","created":"2019-04-19T03:56:10.967Z","1.2.3":"2025-01-07T05:01:38.771Z","1.2.2":"2021-07-30T05:15:13.219Z","1.2.1":"2021-05-20T06:41:06.139Z","1.2.0":"2021-02-27T05:24:40.352Z","1.1.0":"2020-07-14T15:25:02.100Z","1.0.6":"2020-04-23T06:14:16.842Z","1.0.5":"2020-02-07T07:43:40.965Z","1.0.4":"2019-12-17T01:14:25.721Z","1.0.3":"2019-10-05T00:06:04.535Z","1.0.2":"2019-05-30T03:23:14.090Z","1.0.1":"2019-05-27T06:22:55.294Z","1.0.0":"2019-05-13T12:14:26.747Z","0.1.1":"2019-05-13T12:05:16.638Z","0.1.0":"2019-05-07T05:29:53.743Z","0.0.3":"2019-05-06T15:53:20.770Z","0.0.2":"2019-04-19T05:08:13.412Z","0.0.1":"2019-04-19T03:56:10.967Z"},"users":{},"author":{"name":"otiai10"},"repository":{"type":"git","url":"git+https://github.com/otiai10/lookpath.git"},"versions":{"1.2.3":{"name":"lookpath","version":"1.2.3","description":"The minimum and most straightforward way to check if command exists and where the executable is.","engines":{"npm":">=6.13.4"},"main":"./lib/index.js","bin":{"lookpath":"bin/lookpath.js"},"types":"./lib/index.d.ts","scripts":{"build":"rm -rf ./lib && tsc","lint":"eslint ./src/index.ts ./tests/lookpath.spec.ts","test":"jest","validate":"npm run build && node ./bin/lookpath.js npm","release":"npm run build && npm run validate && npm publish"},"author":{"name":"otiai10"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/otiai10/lookpath.git"},"keywords":["exec.LookPath","command","exists"],"bugs":{"url":"https://github.com/otiai10/lookpath/issues"},"homepage":"https://github.com/otiai10/lookpath#readme","devDependencies":{"@types/jest":"^27.0.2","@types/node":"^22.0.2","@typescript-eslint/eslint-plugin":"^4.31.2","@typescript-eslint/parser":"^4.31.2","eslint":"^7.32.0","jest":"^27.2.2","ts-jest":"^27.0.5","typescript":"^4.4.3"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"}},"_id":"lookpath@1.2.3","gitHead":"6b80a53df35ededcebe93c888aa7ad5a49d46e98","_nodeVersion":"20.17.0","_npmVersion":"10.9.0","dist":{"shasum":"681b26482d169515a348e76d7d189ff066a9aefa","size":5458,"noattachment":false,"key":"/lookpath/-/lookpath-1.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/lookpath/download/lookpath-1.2.3.tgz"},"_npmUser":{"name":"otiai10","email":"otiai10@gmail.com"},"directories":{},"maintainers":[{"name":"otiai10","email":"otiai10@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lookpath_1.2.3_1736226098586_0.6932171626440919"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-07T05:01:38.771Z","publish_time":1736226098771,"_source_registry_name":"default","_cnpm_publish_time":1736226098771},"1.2.2":{"name":"lookpath","version":"1.2.2","description":"The minimum and most straightforward way to check if command exists and where the executable is.","engines":{"npm":">=6.13.4"},"main":"./lib/index.js","bin":{"lookpath":"bin/lookpath.js"},"types":"./lib/index.d.ts","scripts":{"build":"rm -rf ./lib && tsc","lint":"eslint ./src/index.ts ./tests/lookpath.spec.ts","test":"jest","validate":"npm run build && node ./bin/lookpath.js npm","release":"npm run build && npm run validate && npm publish"},"author":{"name":"otiai10"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/otiai10/lookpath.git"},"keywords":["exec.LookPath","command","exists"],"bugs":{"url":"https://github.com/otiai10/lookpath/issues"},"homepage":"https://github.com/otiai10/lookpath#readme","devDependencies":{"@types/jest":"^26.0.4","@types/node":"^15.0.1","@typescript-eslint/eslint-plugin":"^4.0.0","@typescript-eslint/parser":"^4.14.1","eslint":"^7.4.0","jest":"^26.1.0","ts-jest":"^26.1.2","typescript":"^4.1.3"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"}},"gitHead":"3885a0e45459b2d6bf466223a67055c3374d979d","_id":"lookpath@1.2.2","_nodeVersion":"12.13.1","_npmVersion":"6.14.11","dist":{"shasum":"bddcd1440b6643e07495138376d43aed38bcd454","size":5336,"noattachment":false,"key":"/lookpath/-/lookpath-1.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/lookpath/download/lookpath-1.2.2.tgz"},"_npmUser":{"name":"otiai10","email":"otiai10@gmail.com"},"directories":{},"maintainers":[{"name":"otiai10","email":"otiai10@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lookpath_1.2.2_1627622113039_0.7776636644018113"},"_hasShrinkwrap":false,"publish_time":1627622113219,"_cnpm_publish_time":1627622113219,"_cnpmcore_publish_time":"2021-12-16T12:25:59.949Z"},"1.2.1":{"name":"lookpath","version":"1.2.1","description":"The minimum and most straightforward way to check if command exists and where the executable is.","engines":{"npm":">=6.13.4"},"main":"./lib/index.js","bin":{"lookpath":"bin/lookpath.js"},"types":"./lib/index.d.ts","scripts":{"build":"rm -rf ./lib && tsc","lint":"eslint ./src/index.ts ./tests/lookpath.spec.ts","test":"jest","validate":"npm run build && node ./bin/lookpath.js npm","release":"npm run build && npm run validate && npm publish"},"author":{"name":"otiai10"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/otiai10/lookpath.git"},"keywords":["exec.LookPath","command","exists"],"bugs":{"url":"https://github.com/otiai10/lookpath/issues"},"homepage":"https://github.com/otiai10/lookpath#readme","devDependencies":{"@types/jest":"^26.0.4","@types/node":"^15.0.1","@typescript-eslint/eslint-plugin":"^4.0.0","@typescript-eslint/parser":"^4.14.1","eslint":"^7.4.0","jest":"^26.1.0","ts-jest":"^26.1.2","typescript":"^4.1.3"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"}},"gitHead":"1a37a54c6d506cfec66b3059f56f96a0c3ac27db","_id":"lookpath@1.2.1","_nodeVersion":"12.13.1","_npmVersion":"6.14.11","dist":{"shasum":"609c16d694603465c6c4b53bb5d5e3380e8eb1ef","size":5209,"noattachment":false,"key":"/lookpath/-/lookpath-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/lookpath/download/lookpath-1.2.1.tgz"},"_npmUser":{"name":"otiai10","email":"otiai10@gmail.com"},"directories":{},"maintainers":[{"name":"otiai10","email":"otiai10@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lookpath_1.2.1_1621492866005_0.1467915850285122"},"_hasShrinkwrap":false,"publish_time":1621492866139,"_cnpm_publish_time":1621492866139,"_cnpmcore_publish_time":"2021-12-16T12:26:00.206Z"},"1.2.0":{"name":"lookpath","version":"1.2.0","description":"The minimum and most straightforward way to check if command exists and where the executable is.","engines":{"npm":">=6.13.4"},"main":"./lib/index.js","bin":{"lookpath":"bin/lookpath.js"},"types":"./lib/index.d.ts","scripts":{"build":"rm -rf ./lib && tsc","lint":"eslint ./src/index.ts ./tests/lookpath.spec.ts","test":"jest","validate":"npm run build && node ./bin/lookpath.js npm","release":"npm run build && npm run validate && npm publish"},"author":{"name":"otiai10"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/otiai10/lookpath.git"},"keywords":["exec.LookPath","command","exists"],"bugs":{"url":"https://github.com/otiai10/lookpath/issues"},"homepage":"https://github.com/otiai10/lookpath#readme","devDependencies":{"@types/jest":"^26.0.4","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.0.0","@typescript-eslint/parser":"^4.14.1","eslint":"^7.4.0","jest":"^26.1.0","ts-jest":"^26.1.2","typescript":"^4.1.3"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"}},"gitHead":"367cf7e91f18c3ce735010a54f09c259c7476603","_id":"lookpath@1.2.0","_nodeVersion":"14.15.4","_npmVersion":"6.14.11","dist":{"shasum":"5fccf91497acec085e66d98cb12446c21fe665ae","size":5122,"noattachment":false,"key":"/lookpath/-/lookpath-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/lookpath/download/lookpath-1.2.0.tgz"},"_npmUser":{"name":"otiai10","email":"otiai10@gmail.com"},"directories":{},"maintainers":[{"name":"otiai10","email":"otiai10@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lookpath_1.2.0_1614403480164_0.42544530217737764"},"_hasShrinkwrap":false,"publish_time":1614403480352,"_cnpm_publish_time":1614403480352,"_cnpmcore_publish_time":"2021-12-16T12:26:00.396Z"},"1.1.0":{"name":"lookpath","version":"1.1.0","description":"The minimum and most straightforward way to check if command exists and where the executable is.","engines":{"npm":">=6.13.4"},"main":"./lib/index.js","bin":{"lookpath":"bin/lookpath.js"},"types":"./lib/index.d.ts","scripts":{"build":"rm -rf ./lib && tsc","lint":"eslint ./src/index.ts","test":"jest --coverage","validate":"npm run build && node ./bin/lookpath.js npm","release":"npm run build && npm run validate && npm publish"},"author":{"name":"otiai10"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/otiai10/lookpath.git"},"keywords":["exec.LookPath","command","exists"],"bugs":{"url":"https://github.com/otiai10/lookpath/issues"},"homepage":"https://github.com/otiai10/lookpath#readme","devDependencies":{"@types/jest":"^26.0.4","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^3.6.1","@typescript-eslint/parser":"^3.6.1","codecov":"^3.7.0","eslint":"^7.4.0","jest":"^26.1.0","ts-jest":"^26.1.2","typescript":"^3.9.6"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"}},"gitHead":"adc7d5061969e5c7ccbde99aae73b054c1d7e159","_id":"lookpath@1.1.0","_nodeVersion":"12.14.0","_npmVersion":"6.14.4","dist":{"shasum":"932d68371a2f0b4a5644f03d6a2b4728edba96d2","size":5969,"noattachment":false,"key":"/lookpath/-/lookpath-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/lookpath/download/lookpath-1.1.0.tgz"},"maintainers":[{"name":"otiai10","email":"otiai10@gmail.com"}],"_npmUser":{"name":"otiai10","email":"otiai10@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lookpath_1.1.0_1594740301975_0.8447915387299445"},"_hasShrinkwrap":false,"publish_time":1594740302100,"_cnpm_publish_time":1594740302100,"_cnpmcore_publish_time":"2021-12-16T12:26:00.648Z"},"1.0.6":{"name":"lookpath","version":"1.0.6","description":"The minimum and most straightforward way to check if command exists and where the executable is.","engines":{"npm":">=6.13.4"},"main":"./lib/index.js","bin":{"lookpath":"bin/lookpath.js"},"types":"./lib/index.d.ts","scripts":{"build":"rm -rf ./lib && tsc","lint":"eslint ./src/index.ts","test":"jest --coverage","validate":"npm run build && node ./bin/lookpath.js npm","release":"npm run build && npm run validate && npm publish"},"author":{"name":"otiai10"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/otiai10/lookpath.git"},"keywords":["exec.LookPath","command","exists"],"bugs":{"url":"https://github.com/otiai10/lookpath/issues"},"homepage":"https://github.com/otiai10/lookpath#readme","devDependencies":{"@types/jest":"^24.0.12","@types/node":"^12.0.0","@typescript-eslint/eslint-plugin":"^1.7.0","@typescript-eslint/parser":"^1.7.0","codecov":"^3.3.0","eslint":"^5.16.0","jest":"^25.2.3","ts-jest":"^24.0.2","typescript":"^3.4.5"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"}},"gitHead":"6f10b997e4fed1ba1f1abfe606ae6f799e5f9ee4","_id":"lookpath@1.0.6","_nodeVersion":"12.13.1","_npmVersion":"6.13.6","dist":{"shasum":"b34aaf01a963f08dbc9ca9b83b20b33a421e957c","size":5513,"noattachment":false,"key":"/lookpath/-/lookpath-1.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/lookpath/download/lookpath-1.0.6.tgz"},"maintainers":[{"name":"otiai10","email":"otiai10@gmail.com"}],"_npmUser":{"name":"otiai10","email":"otiai10@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lookpath_1.0.6_1587622456701_0.7534473319394694"},"_hasShrinkwrap":false,"publish_time":1587622456842,"_cnpm_publish_time":1587622456842,"_cnpmcore_publish_time":"2021-12-16T12:26:00.866Z"},"1.0.5":{"name":"lookpath","version":"1.0.5","description":"The minimum and most straightforward way to check if command exists and where the executable is.","engines":{"npm":"=>6.13.4"},"main":"./lib/index.js","bin":{"lookpath":"bin/lookpath.js"},"types":"./lib/index.d.ts","scripts":{"build":"rm -rf ./lib && tsc","lint":"eslint ./src/index.ts","test":"jest --coverage","validate":"npm run build && node ./bin/lookpath.js npm","release":"npm run build && npm run validate && npm publish"},"author":{"name":"otiai10"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/otiai10/lookpath.git"},"keywords":["exec.LookPath","command","exists"],"bugs":{"url":"https://github.com/otiai10/lookpath/issues"},"homepage":"https://github.com/otiai10/lookpath#readme","devDependencies":{"@types/jest":"^24.0.12","@types/node":"^12.0.0","@typescript-eslint/eslint-plugin":"^1.7.0","@typescript-eslint/parser":"^1.7.0","codecov":"^3.3.0","eslint":"^5.16.0","jest":"^24.8.0","ts-jest":"^24.0.2","typescript":"^3.4.5"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"}},"gitHead":"46ae475c75685498da4417c21f30f3b1c106e66f","_id":"lookpath@1.0.5","_nodeVersion":"12.13.1","_npmVersion":"6.13.6","dist":{"shasum":"363cbfbf42d8519975eeeca5eca483ba89e21678","size":5501,"noattachment":false,"key":"/lookpath/-/lookpath-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/lookpath/download/lookpath-1.0.5.tgz"},"maintainers":[{"name":"otiai10","email":"otiai10@gmail.com"}],"_npmUser":{"name":"otiai10","email":"otiai10@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lookpath_1.0.5_1581061420713_0.7418090966972328"},"_hasShrinkwrap":false,"publish_time":1581061420965,"_cnpm_publish_time":1581061420965,"_cnpmcore_publish_time":"2021-12-16T12:26:01.228Z"},"1.0.4":{"name":"lookpath","version":"1.0.4","description":"The minimum and most straightforward way to check if command exists and where the executable is.","engines":{"node":"~12.13.1","npm":"~6.13.4"},"main":"./lib/index.js","bin":{"lookpath":"bin/lookpath.js"},"types":"./lib/index.d.ts","scripts":{"build":"rm -rf ./lib && tsc","lint":"eslint ./src/index.ts","test":"jest --coverage","validate":"npm run build && node ./bin/lookpath.js npm","release":"npm run build && npm run validate && npm publish"},"author":{"name":"otiai10"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/otiai10/lookpath.git"},"keywords":["exec.LookPath","command","exists"],"bugs":{"url":"https://github.com/otiai10/lookpath/issues"},"homepage":"https://github.com/otiai10/lookpath#readme","devDependencies":{"@types/jest":"^24.0.12","@types/node":"^12.0.0","@typescript-eslint/eslint-plugin":"^1.7.0","@typescript-eslint/parser":"^1.7.0","codecov":"^3.3.0","eslint":"^5.16.0","jest":"^24.8.0","ts-jest":"^24.0.2","typescript":"^3.4.5"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"}},"gitHead":"5560c6f7ac83dcf21be0dad97530e534e5eda76e","_id":"lookpath@1.0.4","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"420bd542f27bd1e07b1cc745682c0a90f9781a96","size":5517,"noattachment":false,"key":"/lookpath/-/lookpath-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/lookpath/download/lookpath-1.0.4.tgz"},"maintainers":[{"name":"otiai10","email":"otiai10@gmail.com"}],"_npmUser":{"name":"otiai10","email":"otiai10@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lookpath_1.0.4_1576545265630_0.5640928275107899"},"_hasShrinkwrap":false,"publish_time":1576545265721,"_cnpm_publish_time":1576545265721,"_cnpmcore_publish_time":"2021-12-16T12:26:01.457Z"},"1.0.3":{"name":"lookpath","version":"1.0.3","description":"The minimum and most straightforward way to check if command exists and where the executable is.","main":"./lib/index.js","bin":{"lookpath":"bin/lookpath.js"},"types":"./lib/index.d.ts","scripts":{"build":"rm -rf ./lib && tsc","lint":"eslint ./src/index.ts","test":"jest --coverage","validate":"npm run build && node ./bin/lookpath.js npm","release":"npm run build && npm run validate && npm publish"},"author":{"name":"otiai10"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/otiai10/lookpath.git"},"keywords":["exec.LookPath","command","exists"],"bugs":{"url":"https://github.com/otiai10/lookpath/issues"},"homepage":"https://github.com/otiai10/lookpath#readme","devDependencies":{"@types/jest":"^24.0.12","@types/node":"^12.0.0","@typescript-eslint/eslint-plugin":"^1.7.0","@typescript-eslint/parser":"^1.7.0","codecov":"^3.3.0","eslint":"^5.16.0","jest":"^24.8.0","ts-jest":"^24.0.2","typescript":"^3.4.5"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"}},"gitHead":"a0da948a0cd3e78af2e132e427e2bae2aee3e287","_id":"lookpath@1.0.3","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"1486c94e9c8052ffa531ef90e8e72c80d7f1dfe4","size":5428,"noattachment":false,"key":"/lookpath/-/lookpath-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/lookpath/download/lookpath-1.0.3.tgz"},"maintainers":[{"name":"otiai10","email":"otiai10@gmail.com"}],"_npmUser":{"name":"otiai10","email":"otiai10@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lookpath_1.0.3_1570233964347_0.6025445153381999"},"_hasShrinkwrap":false,"publish_time":1570233964535,"_cnpm_publish_time":1570233964535,"_cnpmcore_publish_time":"2021-12-16T12:26:02.040Z"},"1.0.2":{"name":"lookpath","version":"1.0.2","description":"The minimum and most straightforward way to check if command exists and where the executable is.","main":"./lib/index.js","bin":{"lookpath":"bin/lookpath.js"},"types":"./lib/index.d.ts","scripts":{"build":"rm -rf ./lib && tsc","lint":"eslint ./src/index.ts","test":"jest --coverage","validate":"npm run build && node ./bin/lookpath.js npm","release":"npm run build && npm run validate && npm publish"},"author":{"name":"otiai10"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/otiai10/lookpath.git"},"keywords":["exec.LookPath","command","exists"],"bugs":{"url":"https://github.com/otiai10/lookpath/issues"},"homepage":"https://github.com/otiai10/lookpath#readme","devDependencies":{"@types/jest":"^24.0.12","@types/node":"^12.0.0","@typescript-eslint/eslint-plugin":"^1.7.0","@typescript-eslint/parser":"^1.7.0","codecov":"^3.3.0","eslint":"^5.16.0","jest":"^24.8.0","ts-jest":"^24.0.2","typescript":"^3.4.5"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"}},"gitHead":"2d4f7d03284a0b214db0cf43120172adb10cbab1","_id":"lookpath@1.0.2","_npmVersion":"6.5.0","_nodeVersion":"10.15.0","_npmUser":{"name":"otiai10","email":"otiai10@gmail.com"},"dist":{"shasum":"514e5d1da71342d5274a7516b41e45fdec7b1af6","size":5428,"noattachment":false,"key":"/lookpath/-/lookpath-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/lookpath/download/lookpath-1.0.2.tgz"},"maintainers":[{"name":"otiai10","email":"otiai10@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lookpath_1.0.2_1559186593958_0.18152069743506716"},"_hasShrinkwrap":false,"publish_time":1559186594090,"_cnpm_publish_time":1559186594090,"_cnpmcore_publish_time":"2021-12-16T12:26:02.311Z"},"1.0.1":{"name":"lookpath","version":"1.0.1","description":"The minimum and most straightforward way to check if command exists and where the executable is.","main":"./lib/index.js","bin":{"lookpath":"bin/lookpath.js"},"types":"./lib/index.d.ts","scripts":{"build":"rm -rf ./lib && tsc","lint":"eslint ./src/index.ts","test":"jest --coverage","validate":"npm run build && node ./bin/lookpath.js npm","release":"npm run build && npm run validate && npm publish"},"author":{"name":"otiai10"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/otiai10/lookpath.git"},"keywords":["exec.LookPath","command","exists"],"bugs":{"url":"https://github.com/otiai10/lookpath/issues"},"homepage":"https://github.com/otiai10/lookpath#readme","devDependencies":{"@types/jest":"^24.0.12","@types/node":"^12.0.0","@typescript-eslint/eslint-plugin":"^1.7.0","@typescript-eslint/parser":"^1.7.0","codecov":"^3.3.0","eslint":"^5.16.0","jest":"^24.8.0","ts-jest":"^24.0.2","typescript":"^3.4.5"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"}},"gitHead":"c9d6181ff9245d88b73a1f24004ea6fcc5537be3","_id":"lookpath@1.0.1","_npmVersion":"6.5.0","_nodeVersion":"10.15.0","_npmUser":{"name":"otiai10","email":"otiai10@gmail.com"},"dist":{"shasum":"9a226c10daf19be3054447154541c78cbcd1373c","size":4274,"noattachment":false,"key":"/lookpath/-/lookpath-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/lookpath/download/lookpath-1.0.1.tgz"},"maintainers":[{"name":"otiai10","email":"otiai10@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lookpath_1.0.1_1558938175129_0.9564371726779917"},"_hasShrinkwrap":false,"publish_time":1558938175294,"_cnpm_publish_time":1558938175294,"_cnpmcore_publish_time":"2021-12-16T12:26:02.564Z"},"1.0.0":{"name":"lookpath","version":"1.0.0","description":"The minimum and most straightforward way to check if command exists and where the executable is.","main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf ./lib && tsc","lint":"eslint ./src/index.ts","test":"jest --coverage","validate":"npm run build && node -e 'require(\"./lib\").lookpath(\"npm\").then(abs => console.log(abs))'","release":"npm run build && npm run validate && npm publish"},"author":{"name":"otiai10"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/otiai10/lookpath.git"},"keywords":["exec.LookPath","command","exists"],"bugs":{"url":"https://github.com/otiai10/lookpath/issues"},"homepage":"https://github.com/otiai10/lookpath#readme","devDependencies":{"@types/jest":"^24.0.12","@types/node":"^12.0.0","@typescript-eslint/eslint-plugin":"^1.7.0","@typescript-eslint/parser":"^1.7.0","codecov":"^3.3.0","eslint":"^5.16.0","jest":"^24.8.0","ts-jest":"^24.0.2","typescript":"^3.4.5"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"}},"gitHead":"54e2dd6e7c5383085fe49499e3cbd229c28c6942","_id":"lookpath@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"otiai10","email":"otiai10@gmail.com"},"dist":{"shasum":"ed44fdd11ef262abe119e94a24a1ba8748daa729","size":4136,"noattachment":false,"key":"/lookpath/-/lookpath-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/lookpath/download/lookpath-1.0.0.tgz"},"maintainers":[{"name":"otiai10","email":"otiai10@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lookpath_1.0.0_1557749666579_0.525621823037004"},"_hasShrinkwrap":false,"publish_time":1557749666747,"_cnpm_publish_time":1557749666747,"_cnpmcore_publish_time":"2021-12-16T12:26:02.855Z"},"0.1.1":{"name":"lookpath","version":"0.1.1","description":"The minimum and most straightforward way to check if command exists and where the executable is.","main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf ./lib && tsc","lint":"eslint ./src/index.ts","test":"jest --coverage","validate":"npm run build && node -e 'require(\"./lib\").lookpath(\"npm\").then(abs => console.log(abs))'","release":"npm run build && npm run validate && npm publish"},"author":{"name":"otiai10"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/otiai10/lookpath.git"},"keywords":["exec.LookPath","command","exists"],"bugs":{"url":"https://github.com/otiai10/lookpath/issues"},"homepage":"https://github.com/otiai10/lookpath#readme","devDependencies":{"@types/jest":"^24.0.12","@types/node":"^12.0.0","@typescript-eslint/eslint-plugin":"^1.7.0","@typescript-eslint/parser":"^1.7.0","codecov":"^3.3.0","eslint":"^5.16.0","jest":"^24.8.0","ts-jest":"^24.0.2","typescript":"^3.4.5"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"}},"gitHead":"d91545e9f8a47c5d96a8f041f7afbd1225cd4005","_id":"lookpath@0.1.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"otiai10","email":"otiai10@gmail.com"},"dist":{"shasum":"1d044406b702c4fc105fc8cb5ad07cea92b52b36","size":4895,"noattachment":false,"key":"/lookpath/-/lookpath-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/lookpath/download/lookpath-0.1.1.tgz"},"maintainers":[{"name":"otiai10","email":"otiai10@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lookpath_0.1.1_1557749116509_0.35862984836796885"},"_hasShrinkwrap":false,"publish_time":1557749116638,"_cnpm_publish_time":1557749116638,"_cnpmcore_publish_time":"2021-12-16T12:26:03.065Z"},"0.1.0":{"name":"lookpath","version":"0.1.0","description":"The minimum and most straightforward way to check if command exists and where the executable is.","main":"lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf ./lib && tsc","lint":"eslint ./src/index.ts","test":"jest --coverage","validate":"node -e 'require(\"./lib\").lookpath(\"npm\").then(abs => console.log(abs))'","release":"npm run build && npm run validate && npm publish"},"author":{"name":"otiai10"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/otiai10/lookpath.git"},"keywords":["exec.LookPath","command","exists"],"bugs":{"url":"https://github.com/otiai10/lookpath/issues"},"homepage":"https://github.com/otiai10/lookpath#readme","devDependencies":{"@types/jest":"^24.0.12","@types/node":"^12.0.0","@typescript-eslint/eslint-plugin":"^1.7.0","@typescript-eslint/parser":"^1.7.0","codecov":"^3.3.0","eslint":"^5.16.0","jest":"^24.8.0","ts-jest":"^24.0.2","typescript":"^3.4.5"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"}},"gitHead":"f38eec3f410c4bc12d68ecd95184f2ea41b581ac","_id":"lookpath@0.1.0","_npmVersion":"6.5.0","_nodeVersion":"10.15.0","_npmUser":{"name":"otiai10","email":"otiai10@gmail.com"},"dist":{"shasum":"20f756ce3f14f0f204cd154f85c5ccaf1b18247e","size":5771,"noattachment":false,"key":"/lookpath/-/lookpath-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/lookpath/download/lookpath-0.1.0.tgz"},"maintainers":[{"name":"otiai10","email":"otiai10@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lookpath_0.1.0_1557206993619_0.6048406033469871"},"_hasShrinkwrap":false,"publish_time":1557206993743,"_cnpm_publish_time":1557206993743,"_cnpmcore_publish_time":"2021-12-16T12:26:03.298Z"},"0.0.3":{"name":"lookpath","version":"0.0.3","description":"The minimum and most straightforward way to check if command exists and where the executable is.","main":"lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"tsc","lint":"eslint ./src/index.ts","test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"otiai10"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/otiai10/lookpath.git"},"keywords":["exec.LookPath","command","exists"],"bugs":{"url":"https://github.com/otiai10/lookpath/issues"},"homepage":"https://github.com/otiai10/lookpath#readme","devDependencies":{"@types/node":"^12.0.0","@typescript-eslint/eslint-plugin":"^1.7.0","@typescript-eslint/parser":"^1.7.0","eslint":"^5.16.0","typescript":"^3.4.5"},"gitHead":"79a154cf11b79b37a5c6e8b17d347bf984d1f7af","_id":"lookpath@0.0.3","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"otiai10","email":"otiai10@gmail.com"},"dist":{"shasum":"46a59ce8f2c0dec8411fa4c623614f42301b2b53","size":3764,"noattachment":false,"key":"/lookpath/-/lookpath-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/lookpath/download/lookpath-0.0.3.tgz"},"maintainers":[{"name":"otiai10","email":"otiai10@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lookpath_0.0.3_1557158000637_0.0624583469350497"},"_hasShrinkwrap":false,"publish_time":1557158000770,"_cnpm_publish_time":1557158000770,"_cnpmcore_publish_time":"2021-12-16T12:26:03.490Z"},"0.0.2":{"name":"lookpath","version":"0.0.2","description":"The minimum and most straightforward way to check if command exists and where the executable is.","main":"lib/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"otiai10"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/otiai10/lookpath.git"},"keywords":["exec.LookPath","command","exists"],"bugs":{"url":"https://github.com/otiai10/lookpath/issues"},"homepage":"https://github.com/otiai10/lookpath#readme","gitHead":"86c582086ecbf0fbbcf35cb0219c683d34526082","_id":"lookpath@0.0.2","_npmVersion":"6.5.0","_nodeVersion":"10.15.0","_npmUser":{"name":"otiai10","email":"otiai10@gmail.com"},"dist":{"shasum":"1d7eaebddc1dee826b40cdf2261e57a765e8d94d","size":1129,"noattachment":false,"key":"/lookpath/-/lookpath-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/lookpath/download/lookpath-0.0.2.tgz"},"maintainers":[{"name":"otiai10","email":"otiai10@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lookpath_0.0.2_1555650493300_0.43861398386174644"},"_hasShrinkwrap":false,"publish_time":1555650493412,"_cnpm_publish_time":1555650493412,"_cnpmcore_publish_time":"2021-12-16T12:26:03.713Z"},"0.0.1":{"name":"lookpath","version":"0.0.1","description":"exec.LookPath","main":"lib/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"otiai10"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/otiai10/lookpath.git"},"keywords":["exec.LookPath"],"bugs":{"url":"https://github.com/otiai10/lookpath/issues"},"homepage":"https://github.com/otiai10/lookpath#readme","gitHead":"db35ecc5bd63b048e5c7330f12fd60924a1a3163","_id":"lookpath@0.0.1","_npmVersion":"6.5.0","_nodeVersion":"10.15.0","_npmUser":{"name":"otiai10","email":"otiai10@gmail.com"},"dist":{"shasum":"ae195787fa01d455889b091a679e49cf52e87ed3","size":1039,"noattachment":false,"key":"/lookpath/-/lookpath-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/lookpath/download/lookpath-0.0.1.tgz"},"maintainers":[{"name":"otiai10","email":"otiai10@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lookpath_0.0.1_1555646170819_0.5300229069852167"},"_hasShrinkwrap":false,"publish_time":1555646170967,"_cnpm_publish_time":1555646170967,"_cnpmcore_publish_time":"2021-12-16T12:26:03.916Z"}},"readme":"# lookpath\n\n[![npm version](https://badge.fury.io/js/lookpath.svg)](https://badge.fury.io/js/lookpath)\n[![npm download](https://img.shields.io/npm/dt/lookpath.svg)](https://www.npmjs.com/package/lookpath)\n[![Node.js CI](https://github.com/otiai10/lookpath/workflows/Node.js%20CI/badge.svg)](https://github.com/otiai10/lookpath/actions/)\n[![CodeQL](https://github.com/otiai10/lookpath/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/otiai10/lookpath/actions/workflows/codeql-analysis.yml)\n[![codecov](https://codecov.io/gh/otiai10/lookpath/branch/master/graph/badge.svg)](https://codecov.io/gh/otiai10/lookpath)\n[![Maintainability](https://api.codeclimate.com/v1/badges/1cc9237695a7bd8e3d60/maintainability)](https://codeclimate.com/github/otiai10/lookpath/maintainability)\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fotiai10%2Flookpath.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fotiai10%2Flookpath?ref=badge_shield)\n\nTo check if the command exists and where the executable file is, **WITHOUT** using `child_process`.\n\n```\nnpm install lookpath\n```\n\n# Example usage\n\n```js\nconst { lookpath } = require('lookpath');\n\nconst p = await lookpath('bash');\n// \"/bin/bash\", otherwise \"undefined\"\n```\n\n# Advanced usage\n\n```js\nconst p = await lookpath('bash', {\n  include: ['/home/hiromu/.bin'],\n  exclude: ['/mnt']\n});\n// include: Do scan also under `~/.bin`\n// exclude: Do NOT scan under `/mnt`\n```\n\n# Motivation\n\n- I don't want to spawn `child_process` in order to kick `which`, `where`, `whereis`, or `command -v`.\n    - [node.js - Node - check existence of command in path - Stack Overflow](https://stackoverflow.com/questions/34953168/node-check-existence-of-command-in-path/)\n    - [Node.js: Check if a command exists - Gist](https://gist.github.com/jmptable/7a3aa580efffdef50fa9f0dd3d068d6f)\n    - [mathisonian/command-exists: node module to check if a command-line command exists - GitHub](https://github.com/mathisonian/command-exists)\n- then I checked Go implementation of [`exec.LookPath`](https://golang.org/pkg/os/exec/#LookPath).\n    - [src/os/exec/lp_unix.go - The Go Programming Language](https://golang.org/src/os/exec/lp_unix.go?s=928:970#L24)\n- so I concluded that scanning under `$PATH` or `$Path` is the best straightforward way to check if the command exists.\n\n\n# Issues\n\n- https://github.com/otiai10/lookpath/issues\n\nAny feedback would be appreciated ;)\n\n\n# License\n\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fotiai10%2Flookpath.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fotiai10%2Flookpath?ref=badge_large)","_attachments":{},"homepage":"https://github.com/otiai10/lookpath#readme","bugs":{"url":"https://github.com/otiai10/lookpath/issues"},"license":"MIT"}