{"_id":"app-root-path","_rev":"232069","name":"app-root-path","description":"Determine an app's root path from anywhere inside the app","dist-tags":{"beta":"1.2.0","latest":"3.1.0","next":"1.4.0"},"maintainers":[{"name":"inxilpro","email":"npm@rchy.net"}],"time":{"modified":"2023-03-24T15:42:10.000Z","created":"2014-08-07T15:39:45.912Z","3.1.0":"2022-08-16T03:27:51.632Z","3.0.0":"2019-10-31T15:32:11.882Z","2.2.1":"2019-03-25T16:53:28.159Z","2.2.0":"2019-03-22T08:52:34.402Z","2.1.0":"2018-06-23T20:18:37.308Z","2.0.1":"2016-09-08T15:47:22.247Z","2.0.0":"2016-09-07T20:33:07.295Z","1.4.0":"2016-09-07T19:04:02.908Z","1.3.0":"2016-07-22T19:31:37.016Z","1.2.1":"2016-06-17T19:31:11.864Z","1.2.0":"2015-12-01T04:06:34.473Z","1.1.0":"2015-12-01T03:35:21.921Z","1.0.0":"2014-11-07T16:13:43.558Z","0.1.1":"2014-10-29T18:47:54.283Z","0.1.0":"2014-08-25T21:05:39.432Z","0.0.1":"2014-08-07T15:39:45.912Z"},"users":{},"author":{"name":"Chris Morrell","email":"http://cmorrell.com"},"repository":{"type":"git","url":"git+https://github.com/inxilpro/node-app-root-path.git"},"versions":{"3.1.0":{"name":"app-root-path","version":"3.1.0","description":"Determine an app's root path from anywhere inside the app","main":"index.js","browser":"browser-shim.js","scripts":{"test":"nyc mocha -R spec","report-coverage":"npm test && nyc report --reporter=text-lcov > coverage.lcov && codecov","release":"semantic-release pre && npm publish && semantic-release post","semantic-release":"semantic-release","commit":"npx git-cz"},"repository":{"type":"git","url":"git+https://github.com/inxilpro/node-app-root-path.git"},"keywords":["root","path","utility","util","node","module","modules","node_modules","require","app"],"author":{"name":"Chris Morrell","email":"http://cmorrell.com"},"license":"MIT","bugs":{"url":"https://github.com/inxilpro/node-app-root-path/issues"},"homepage":"https://github.com/inxilpro/node-app-root-path","devDependencies":{"codecov":"^3.6.1","coveralls":"^3.0.7","cracks":"^3.1.2","cz-conventional-changelog":"^3.0.2","ghooks":"^2.0.4","istanbul":"^0.3.4","mocha":"^6.2.2","mocha-lcov-reporter":"0.0.1","mockery":"^1.7.0","nyc":"^14.1.1","semantic-release":"^15.13.28","validate-commit-msg":"^2.14.0"},"engines":{"node":">= 6.0.0"},"release":{"branch":"master"},"config":{"ghooks":{"commit-msg":"validate-commit-msg","post-merge":"npm install","post-rewrite":"npm install"},"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"types":"./index.d.ts","gitHead":"baf711a6ec61acf50aeb42fb6e5118e899bcbe4b","_id":"app-root-path@3.1.0","_nodeVersion":"18.6.0","_npmVersion":"8.13.2","dist":{"shasum":"5971a2fc12ba170369a7a1ef018c71e6e47c2e86","size":6067,"noattachment":false,"key":"/app-root-path/-/app-root-path-3.1.0.tgz","tarball":"http://name.csiicloud.com:7001/app-root-path/download/app-root-path-3.1.0.tgz"},"_npmUser":{"name":"inxilpro","email":"npm@rchy.net"},"directories":{},"maintainers":[{"name":"inxilpro","email":"npm@rchy.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/app-root-path_3.1.0_1660620471421_0.840558647655453"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-16T03:28:50.918Z","publish_time":1660620471632,"_cnpm_publish_time":1660620471632},"3.0.0":{"name":"app-root-path","version":"3.0.0","description":"Determine an app's root path from anywhere inside the app","main":"index.js","browser":"browser-shim.js","scripts":{"test":"nyc mocha -R spec","report-coverage":"npm test && nyc report --reporter=text-lcov > coverage.lcov && codecov","release":"semantic-release pre && npm publish && semantic-release post","semantic-release":"semantic-release","commit":"npx git-cz"},"repository":{"type":"git","url":"git+https://github.com/inxilpro/node-app-root-path.git"},"keywords":["root","path","utility","util","node","module","modules","node_modules","require","app"],"author":{"name":"Chris Morrell","email":"http://cmorrell.com"},"license":"MIT","bugs":{"url":"https://github.com/inxilpro/node-app-root-path/issues"},"homepage":"https://github.com/inxilpro/node-app-root-path","devDependencies":{"codecov":"^3.6.1","coveralls":"^3.0.7","cracks":"^3.1.2","cz-conventional-changelog":"^3.0.2","ghooks":"^2.0.4","istanbul":"^0.3.4","mocha":"^6.2.2","mocha-lcov-reporter":"0.0.1","mockery":"^1.7.0","nyc":"^14.1.1","semantic-release":"^15.13.28","validate-commit-msg":"^2.14.0"},"engines":{"node":">= 6.0.0"},"release":{"branch":"master"},"config":{"ghooks":{"commit-msg":"validate-commit-msg","post-merge":"npm install","post-rewrite":"npm install"},"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"54d06fef2340a36070fbfc24973bb676079aa7a1","_id":"app-root-path@3.0.0","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"shasum":"210b6f43873227e18a4b810a032283311555d5ad","size":6432,"noattachment":false,"key":"/app-root-path/-/app-root-path-3.0.0.tgz","tarball":"http://name.csiicloud.com:7001/app-root-path/download/app-root-path-3.0.0.tgz"},"maintainers":[{"name":"inxilpro","email":"npm@rchy.net"}],"_npmUser":{"name":"inxilpro","email":"npm@rchy.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/app-root-path_3.0.0_1572535931709_0.9508940957476093"},"_hasShrinkwrap":false,"publish_time":1572535931882,"_cnpm_publish_time":1572535931882},"2.2.1":{"name":"app-root-path","version":"2.2.1","description":"Determine an app's root path from anywhere inside the app","main":"index.js","browser":"browser-shim.js","scripts":{"test":"nyc mocha -R spec","report-coverage":"npm test && nyc report --reporter=text-lcov > coverage.lcov && codecov","release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"git+https://github.com/inxilpro/node-app-root-path.git"},"keywords":["root","path","utility","util","node","module","modules","node_modules","require","app"],"author":{"name":"Chris Morrell","email":"http://cmorrell.com"},"license":"MIT","bugs":{"url":"https://github.com/inxilpro/node-app-root-path/issues"},"homepage":"https://github.com/inxilpro/node-app-root-path","devDependencies":{"codecov":"^1.0.1","coveralls":"^2.11.2","cracks":"^3.1.2","cz-conventional-changelog":"^1.2.0","ghooks":"^1.3.2","istanbul":"^0.3.4","mocha":"^2.0.1","mocha-lcov-reporter":"0.0.1","mockery":"^1.7.0","nyc":"^8.1.0","semantic-release":"^4.3.5","validate-commit-msg":"^2.8.0"},"engines":{"node":">= 6.0.0"},"release":{"branch":"master"},"config":{"ghooks":{"commit-msg":"validate-commit-msg","post-merge":"npm install","post-rewrite":"npm install"},"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"12026235fc2f700b17cc09ed7804002adb8b7462","_id":"app-root-path@2.2.1","_nodeVersion":"11.12.0","_npmVersion":"6.7.0","_npmUser":{"name":"inxilpro","email":"npm@rchy.net"},"dist":{"shasum":"d0df4a682ee408273583d43f6f79e9892624bc9a","size":5551,"noattachment":false,"key":"/app-root-path/-/app-root-path-2.2.1.tgz","tarball":"http://name.csiicloud.com:7001/app-root-path/download/app-root-path-2.2.1.tgz"},"maintainers":[{"name":"inxilpro","email":"npm@rchy.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/app-root-path_2.2.1_1553532808053_0.7794701449572354"},"_hasShrinkwrap":false,"publish_time":1553532808159,"_cnpm_publish_time":1553532808159},"2.2.0":{"name":"app-root-path","version":"2.2.0","description":"Determine an app's root path from anywhere inside the app","main":"index.js","browser":"browser-shim.js","scripts":{"test":"nyc mocha -R spec","report-coverage":"npm test && nyc report --reporter=text-lcov > coverage.lcov && codecov","release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"git+https://github.com/inxilpro/node-app-root-path.git"},"keywords":["root","path","utility","util","node","module","modules","node_modules","require","app"],"author":{"name":"Chris Morrell","email":"http://cmorrell.com"},"license":"MIT","bugs":{"url":"https://github.com/inxilpro/node-app-root-path/issues"},"homepage":"https://github.com/inxilpro/node-app-root-path","devDependencies":{"codecov":"^1.0.1","coveralls":"^2.11.2","cracks":"^3.1.2","cz-conventional-changelog":"^1.2.0","ghooks":"^1.3.2","istanbul":"^0.3.4","mocha":"^2.0.1","mocha-lcov-reporter":"0.0.1","mockery":"^1.7.0","nyc":"^8.1.0","semantic-release":"^4.3.5","validate-commit-msg":"^2.8.0"},"engines":{"node":">= 6.0.0"},"release":{"branch":"master"},"config":{"ghooks":{"commit-msg":"validate-commit-msg","post-merge":"npm install","post-rewrite":"npm install"},"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"59352ec1308b7b75256e6575220febf27c8c0f7f","_id":"app-root-path@2.2.0","_nodeVersion":"11.12.0","_npmVersion":"6.7.0","_npmUser":{"name":"inxilpro","email":"npm@rchy.net"},"dist":{"shasum":"4583e2f2095563b10a737b8bbd03a640fca5c0cc","size":5443,"noattachment":false,"key":"/app-root-path/-/app-root-path-2.2.0.tgz","tarball":"http://name.csiicloud.com:7001/app-root-path/download/app-root-path-2.2.0.tgz"},"maintainers":[{"name":"inxilpro","email":"npm@rchy.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/app-root-path_2.2.0_1553244754189_0.8999416472306798"},"_hasShrinkwrap":false,"publish_time":1553244754402,"_cnpm_publish_time":1553244754402},"2.1.0":{"name":"app-root-path","version":"2.1.0","description":"Determine an app's root path from anywhere inside the app","main":"index.js","browser":"browser-shim.js","scripts":{"test":"nyc mocha -R spec","report-coverage":"npm test && nyc report --reporter=text-lcov > coverage.lcov && codecov","release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"git+https://github.com/inxilpro/node-app-root-path.git"},"keywords":["root","path","utility","util","node","module","modules","node_modules","require","app"],"author":{"name":"Chris Morrell","email":"http://cmorrell.com"},"license":"MIT","bugs":{"url":"https://github.com/inxilpro/node-app-root-path/issues"},"homepage":"https://github.com/inxilpro/node-app-root-path","devDependencies":{"codecov":"^1.0.1","coveralls":"^2.11.2","cracks":"^3.1.2","cz-conventional-changelog":"^1.2.0","ghooks":"^1.3.2","istanbul":"^0.3.4","mocha":"^2.0.1","mocha-lcov-reporter":"0.0.1","mockery":"^1.7.0","nyc":"^8.1.0","semantic-release":"^4.3.5","validate-commit-msg":"^2.8.0"},"engines":{"node":">= 4.0.0"},"release":{"branch":"master"},"config":{"ghooks":{"commit-msg":"validate-commit-msg","post-merge":"npm install","post-rewrite":"npm install"},"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"2339037a07d7f620b8e4806acec08303c948e82b","_id":"app-root-path@2.1.0","_shasum":"98bf6599327ecea199309866e8140368fd2e646a","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"inxilpro","email":"npm@rchy.net"},"dist":{"shasum":"98bf6599327ecea199309866e8140368fd2e646a","size":5851,"noattachment":false,"key":"/app-root-path/-/app-root-path-2.1.0.tgz","tarball":"http://name.csiicloud.com:7001/app-root-path/download/app-root-path-2.1.0.tgz"},"maintainers":[{"name":"inxilpro","email":"npm@rchy.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/app-root-path_2.1.0_1529785117229_0.3098370296064059"},"_hasShrinkwrap":false,"publish_time":1529785117308,"_cnpm_publish_time":1529785117308},"2.0.1":{"name":"app-root-path","version":"2.0.1","description":"Determine an app's root path from anywhere inside the app","main":"index.js","browser":"browser-shim.js","scripts":{"test":"nyc mocha -R spec","report-coverage":"npm test && nyc report --reporter=text-lcov > coverage.lcov && codecov","release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"git+https://github.com/inxilpro/node-app-root-path.git"},"keywords":["root","path","utility","util","node","module","modules","node_modules","require","app"],"author":{"name":"Chris Morrell","email":"http://cmorrell.com"},"license":"MIT","bugs":{"url":"https://github.com/inxilpro/node-app-root-path/issues"},"homepage":"https://github.com/inxilpro/node-app-root-path","devDependencies":{"codecov":"^1.0.1","coveralls":"^2.11.2","cracks":"^3.1.2","cz-conventional-changelog":"^1.2.0","ghooks":"^1.3.2","istanbul":"^0.3.4","mocha":"^2.0.1","mocha-lcov-reporter":"0.0.1","mockery":"^1.7.0","nyc":"^8.1.0","semantic-release":"^4.3.5","validate-commit-msg":"^2.8.0"},"engines":{"node":">= 4.0.0"},"release":{"branch":"master"},"config":{"ghooks":{"commit-msg":"validate-commit-msg","post-merge":"npm install","post-rewrite":"npm install"},"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"eb7e4adcf124b62564ca55d6a398073a52a97c6c","_id":"app-root-path@2.0.1","_shasum":"cd62dcf8e4fd5a417efc664d2e5b10653c651b46","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.3.1","_npmUser":{"name":"inxilpro","email":"npm@rchy.net"},"dist":{"shasum":"cd62dcf8e4fd5a417efc664d2e5b10653c651b46","size":11237,"noattachment":false,"key":"/app-root-path/-/app-root-path-2.0.1.tgz","tarball":"http://name.csiicloud.com:7001/app-root-path/download/app-root-path-2.0.1.tgz"},"maintainers":[{"name":"inxilpro","email":"npm@rchy.net"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/app-root-path-2.0.1.tgz_1473349640660_0.4080449100583792"},"directories":{},"publish_time":1473349642247,"_cnpm_publish_time":1473349642247,"_hasShrinkwrap":false},"2.0.0":{"name":"app-root-path","version":"2.0.0","description":"Determine an app's root path from anywhere inside the app","main":"index.js","browser":"browser-shim.js","scripts":{"test":"nyc mocha -R spec","report-coverage":"npm test && nyc report --reporter=text-lcov > coverage.lcov && codecov","release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"git+https://github.com/inxilpro/node-app-root-path.git"},"keywords":["root","path","utility","util","node","module","modules","node_modules","require","app"],"author":{"name":"Chris Morrell","email":"http://cmorrell.com"},"license":"MIT","bugs":{"url":"https://github.com/inxilpro/node-app-root-path/issues"},"homepage":"https://github.com/inxilpro/node-app-root-path","devDependencies":{"codecov":"^1.0.1","coveralls":"^2.11.2","cracks":"^3.1.2","cz-conventional-changelog":"^1.2.0","ghooks":"^1.3.2","istanbul":"^0.3.4","mocha":"^2.0.1","mocha-lcov-reporter":"0.0.1","nyc":"^8.1.0","semantic-release":"^4.3.5","validate-commit-msg":"^2.8.0"},"engines":{"node":">= 4.0.0"},"release":{"branch":"master"},"config":{"ghooks":{"commit-msg":"validate-commit-msg","post-merge":"npm install","post-rewrite":"npm install"},"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"c6666ed6008c3052668344f745417379b8703bd9","_id":"app-root-path@2.0.0","_shasum":"81048ae0cca872e105e9a9ff0d30079e8f15c566","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"inxilpro","email":"npm@rchy.net"},"dist":{"shasum":"81048ae0cca872e105e9a9ff0d30079e8f15c566","size":7002,"noattachment":false,"key":"/app-root-path/-/app-root-path-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/app-root-path/download/app-root-path-2.0.0.tgz"},"maintainers":[{"name":"inxilpro","email":"npm@rchy.net"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/app-root-path-2.0.0.tgz_1473280385672_0.6049560639075935"},"directories":{},"publish_time":1473280387295,"_cnpm_publish_time":1473280387295,"_hasShrinkwrap":false},"1.4.0":{"name":"app-root-path","description":"Determine an app's root path from anywhere inside the app","main":"index.js","browser":"browser-shim.js","scripts":{"test":"nyc mocha -R spec","report-coverage":"npm test && nyc report --reporter=text-lcov > coverage.lcov && codecov","release":"semantic-release pre && npm publish --tag next && semantic-release post"},"repository":{"type":"git","url":"git+https://github.com/inxilpro/node-app-root-path.git"},"keywords":["root","path","utility","util","node","module","modules","node_modules","require","app"],"author":{"name":"Chris Morrell","email":"http://cmorrell.com"},"license":"MIT","bugs":{"url":"https://github.com/inxilpro/node-app-root-path/issues"},"homepage":"https://github.com/inxilpro/node-app-root-path","devDependencies":{"codecov":"^1.0.1","coveralls":"^2.11.2","cracks":"^3.1.2","cz-conventional-changelog":"^1.2.0","ghooks":"^1.3.2","istanbul":"^0.3.4","mocha":"^2.0.1","mocha-lcov-reporter":"0.0.1","nyc":"^8.1.0","semantic-release":"^4.3.5","validate-commit-msg":"^2.8.0"},"release":{"branch":"development"},"config":{"ghooks":{"commit-msg":"validate-commit-msg","post-merge":"npm install","post-rewrite":"npm install"},"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"version":"1.4.0","gitHead":"2d5a5a575d99fddd30720ba6978fe3c8fb2cb697","_id":"app-root-path@1.4.0","_shasum":"6335d865c9640d0fad99004e5a79232238e92dfa","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"inxilpro","email":"npm@rchy.net"},"dist":{"shasum":"6335d865c9640d0fad99004e5a79232238e92dfa","size":7104,"noattachment":false,"key":"/app-root-path/-/app-root-path-1.4.0.tgz","tarball":"http://name.csiicloud.com:7001/app-root-path/download/app-root-path-1.4.0.tgz"},"maintainers":[{"name":"inxilpro","email":"npm@rchy.net"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/app-root-path-1.4.0.tgz_1473275041307_0.14069773023948073"},"directories":{},"publish_time":1473275042908,"_cnpm_publish_time":1473275042908,"_hasShrinkwrap":false},"1.3.0":{"name":"app-root-path","version":"1.3.0","description":"Determine an app's root path from anywhere inside the app","main":"index.js","scripts":{"test":"node ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","test-only":"mocha -R spec"},"repository":{"type":"git","url":"git+https://github.com/inxilpro/node-app-root-path.git"},"keywords":["root","path","utility","util","node","module","modules","node_modules","require","app"],"author":{"name":"Chris Morrell","email":"http://cmorrell.com"},"license":"MIT","bugs":{"url":"https://github.com/inxilpro/node-app-root-path/issues"},"homepage":"https://github.com/inxilpro/node-app-root-path","devDependencies":{"mocha":"^2.0.1","coveralls":"^2.11.2","istanbul":"^0.3.4","mocha-lcov-reporter":"0.0.1"},"gitHead":"7b40c3a6435d8dc1e24c89bb1bfee1ad0adfc5bf","_id":"app-root-path@1.3.0","_shasum":"dc9a096d78a270ae3cbba6cd162f85f7de3edea4","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"inxilpro","email":"npm@rchy.net"},"maintainers":[{"name":"inxilpro","email":"npm@rchy.net"}],"dist":{"shasum":"dc9a096d78a270ae3cbba6cd162f85f7de3edea4","size":7745,"noattachment":false,"key":"/app-root-path/-/app-root-path-1.3.0.tgz","tarball":"http://name.csiicloud.com:7001/app-root-path/download/app-root-path-1.3.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/app-root-path-1.3.0.tgz_1469215895099_0.10980547592043877"},"directories":{},"publish_time":1469215897016,"_cnpm_publish_time":1469215897016,"_hasShrinkwrap":false},"1.2.1":{"name":"app-root-path","version":"1.2.1","description":"Determine an app's root path from anywhere inside the app","main":"index.js","scripts":{"test":"node ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","test-only":"mocha -R spec"},"repository":{"type":"git","url":"git+https://github.com/inxilpro/node-app-root-path.git"},"keywords":["root","path","utility","util","node","module","modules","node_modules","require","app"],"author":{"name":"Chris Morrell","email":"http://cmorrell.com"},"license":"MIT","bugs":{"url":"https://github.com/inxilpro/node-app-root-path/issues"},"homepage":"https://github.com/inxilpro/node-app-root-path","devDependencies":{"mocha":"^2.0.1","coveralls":"^2.11.2","istanbul":"^0.3.4","mocha-lcov-reporter":"0.0.1"},"gitHead":"512c0a729b603c8989a3084e4cd329d254bf77e0","_id":"app-root-path@1.2.1","_shasum":"0b7b16e9836ba40ac98023f59a98d22b07b80093","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"inxilpro","email":"npm@rchy.net"},"maintainers":[{"name":"inxilpro","email":"npm@rchy.net"}],"dist":{"shasum":"0b7b16e9836ba40ac98023f59a98d22b07b80093","size":7659,"noattachment":false,"key":"/app-root-path/-/app-root-path-1.2.1.tgz","tarball":"http://name.csiicloud.com:7001/app-root-path/download/app-root-path-1.2.1.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/app-root-path-1.2.1.tgz_1466191870590_0.46633020462468266"},"directories":{},"publish_time":1466191871864,"_cnpm_publish_time":1466191871864,"_hasShrinkwrap":false},"1.2.0":{"name":"app-root-path","version":"1.2.0","description":"Determine an app's root path from anywhere inside the app","main":"index.js","scripts":{"test":"node ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","test-only":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/inxilpro/node-app-root-path.git"},"keywords":["root","path","utility","util","node","module","modules","node_modules","require","app"],"author":{"name":"Chris Morrell","email":"http://cmorrell.com"},"license":"MIT","bugs":{"url":"https://github.com/inxilpro/node-app-root-path/issues"},"homepage":"https://github.com/inxilpro/node-app-root-path","devDependencies":{"mocha":"^2.0.1","coveralls":"^2.11.2","istanbul":"^0.3.4","mocha-lcov-reporter":"0.0.1"},"gitHead":"b8582abfaf39c4abe5508b4f136cdba169052abd","_id":"app-root-path@1.2.0","_shasum":"ea1fa8d51556ade61785b23bec12c5d2a395712d","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.2","_npmUser":{"name":"inxilpro","email":"npm@rchy.net"},"maintainers":[{"name":"inxilpro","email":"npm@rchy.net"}],"dist":{"shasum":"ea1fa8d51556ade61785b23bec12c5d2a395712d","size":7664,"noattachment":false,"key":"/app-root-path/-/app-root-path-1.2.0.tgz","tarball":"http://name.csiicloud.com:7001/app-root-path/download/app-root-path-1.2.0.tgz"},"directories":{},"publish_time":1448942794473,"_cnpm_publish_time":1448942794473,"_hasShrinkwrap":false},"1.1.0":{"name":"app-root-path","version":"1.1.0","description":"Determine an app's root path from anywhere inside the app","main":"index.js","scripts":{"test":"node ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","test-only":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/inxilpro/node-app-root-path.git"},"keywords":["root","path","utility","util","node","module","modules","node_modules","require","app"],"author":{"name":"Chris Morrell","email":"http://cmorrell.com"},"license":"MIT","bugs":{"url":"https://github.com/inxilpro/node-app-root-path/issues"},"homepage":"https://github.com/inxilpro/node-app-root-path","devDependencies":{"mocha":"^2.0.1","coveralls":"^2.11.2","istanbul":"^0.3.4","mocha-lcov-reporter":"0.0.1"},"gitHead":"3fa77094f3448cb8008dcc62db7bc1f063d4c8a9","_id":"app-root-path@1.1.0","_shasum":"a67a7b71978f6edc68dc64d0de9d101182bfaec7","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.2","_npmUser":{"name":"inxilpro","email":"npm@rchy.net"},"maintainers":[{"name":"inxilpro","email":"npm@rchy.net"}],"dist":{"shasum":"a67a7b71978f6edc68dc64d0de9d101182bfaec7","size":7407,"noattachment":false,"key":"/app-root-path/-/app-root-path-1.1.0.tgz","tarball":"http://name.csiicloud.com:7001/app-root-path/download/app-root-path-1.1.0.tgz"},"directories":{},"publish_time":1448940921921,"_cnpm_publish_time":1448940921921,"_hasShrinkwrap":false},"1.0.0":{"name":"app-root-path","version":"1.0.0","description":"Determine an app's root path from anywhere inside the app","main":"index.js","scripts":{"test":"node node_modules/mocha/bin/mocha -R spec"},"repository":{"type":"git","url":"https://github.com/inxilpro/node-app-root-path.git"},"keywords":["root","path","utility","util","node","module","modules","node_modules","require","app"],"author":{"name":"Chris Morrell","email":"http://cmorrell.com"},"license":"MIT","bugs":{"url":"https://github.com/inxilpro/node-app-root-path/issues"},"homepage":"https://github.com/inxilpro/node-app-root-path","devDependencies":{"mocha":"^2.0.1"},"_id":"app-root-path@1.0.0","dist":{"shasum":"2c7299174bc61cb86fe3a4a798e01e493b7d537d","size":4856,"noattachment":false,"key":"/app-root-path/-/app-root-path-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/app-root-path/download/app-root-path-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"inxilpro","email":"npm@rchy.net"},"maintainers":[{"name":"inxilpro","email":"npm@rchy.net"}],"directories":{},"publish_time":1415376823558,"_cnpm_publish_time":1415376823558,"_hasShrinkwrap":false},"0.1.1":{"name":"app-root-path","version":"0.1.1","description":"Determine an app's root path from anywhere inside the app","main":"index.js","scripts":{"test":"node node_modules/mocha/bin/mocha -R spec"},"repository":{"type":"git","url":"https://github.com/inxilpro/node-app-root-path.git"},"keywords":["root","path"],"author":{"name":"Chris Morrell","email":"http://cmorrell.com"},"license":"MIT","bugs":{"url":"https://github.com/inxilpro/node-app-root-path/issues"},"homepage":"https://github.com/inxilpro/node-app-root-path","devDependencies":{"mocha":"^1.21.4"},"_id":"app-root-path@0.1.1","dist":{"shasum":"1482010bc922b6806745fa4c6010b52a764b4b28","size":4480,"noattachment":false,"key":"/app-root-path/-/app-root-path-0.1.1.tgz","tarball":"http://name.csiicloud.com:7001/app-root-path/download/app-root-path-0.1.1.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"inxilpro","email":"npm@rchy.net"},"maintainers":[{"name":"inxilpro","email":"npm@rchy.net"}],"directories":{},"publish_time":1414608474283,"_cnpm_publish_time":1414608474283,"_hasShrinkwrap":false},"0.1.0":{"name":"app-root-path","version":"0.1.0","description":"Determine an app's root path from anywhere inside the app","main":"index.js","scripts":{"test":"node node_modules/mocha/bin/mocha -R spec"},"repository":{"type":"git","url":"https://github.com/inxilpro/node-app-root-path.git"},"keywords":["root","path"],"author":{"name":"Chris Morrell","email":"http://cmorrell.com"},"license":"MIT","bugs":{"url":"https://github.com/inxilpro/node-app-root-path/issues"},"homepage":"https://github.com/inxilpro/node-app-root-path","devDependencies":{"mocha":"^1.21.4"},"_id":"app-root-path@0.1.0","dist":{"shasum":"a7cf925303c216e29755e2c671968ef5fd44a61b","size":4369,"noattachment":false,"key":"/app-root-path/-/app-root-path-0.1.0.tgz","tarball":"http://name.csiicloud.com:7001/app-root-path/download/app-root-path-0.1.0.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"inxilpro","email":"npm@rchy.net"},"maintainers":[{"name":"inxilpro","email":"npm@rchy.net"}],"directories":{},"publish_time":1409000739432,"_cnpm_publish_time":1409000739432,"_hasShrinkwrap":false},"0.0.1":{"name":"app-root-path","version":"0.0.1","description":"Determine an app's root path from anywhere inside the app","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/inxilpro/node-app-root-path.git"},"keywords":["root","path"],"author":{"name":"Chris Morrell","email":"http://cmorrell.com"},"license":"MIT","bugs":{"url":"https://github.com/inxilpro/node-app-root-path/issues"},"homepage":"https://github.com/inxilpro/node-app-root-path","_id":"app-root-path@0.0.1","dist":{"shasum":"93d0117ccd931cf4f0d9f28e90d676d395b5f340","size":2241,"noattachment":false,"key":"/app-root-path/-/app-root-path-0.0.1.tgz","tarball":"http://name.csiicloud.com:7001/app-root-path/download/app-root-path-0.0.1.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"inxilpro","email":"npm@rchy.net"},"maintainers":[{"name":"inxilpro","email":"npm@rchy.net"}],"directories":{},"publish_time":1407425985912,"_cnpm_publish_time":1407425985912,"_hasShrinkwrap":false}},"readme":"# App Root Path Module\n\n[![Build Status][build-status-img]][build-status] [![Dependency Status][david-dm-img]][david-dm] [![Code Coverage Status][codecov-img]][codecov]\n\n> **Please Note:** Due to the very limited scope of this module, I do not anticipate needing to make very many changes to it.  Expect long stretches of zero updates—that does not mean that the module is outdated.\n\nThis simple module helps you access your application's root path from anywhere in the application without resorting to relative paths like `require(\"../../path\")`.\n\n## Installation\n\n``` bash\n$ npm i -S app-root-path\n```\n\n## Usage\n\nTo simply access the app's root path, use the module as though it were a string:\n\n``` js\nvar appRoot = require('app-root-path');\nvar myModule = require(appRoot + '/lib/my-module.js');\n```\n\n> _Side note: the module actually returns an object, but that object implements the `toString` method, so you can use it as though it were a string.  There are a few edge cases where this might not be the case (most notably `console.log`), but they shouldn't affect actual use of the module, where you're almost always concatenating with an additional string._\n\nA helper function is also provided:\n\n``` js\nvar reqlib = require('app-root-path').require;\nvar myModule = reqlib('/lib/my-module.js');\n```\n\nIt's a little hacky, but you can also put this method on your application's `global` object to use it everywhere in your project:\n\n``` js\n// In app.js\nglobal.reqlib = require('app-root-path').require;\n\n// In lib/module/component/subcomponent.js\nvar myModule = reqlib('/lib/my-module.js');\n```\n\nFinally, you can also just resolve a module path:\n\n``` js\nvar myModulePath = require('app-root-path').resolve('/lib/my-module.js');\n```\n\nYou can explicitly set the path, using the environmental variable `APP_ROOT_PATH` or by calling `require('app-root-path').setPath('/my/app/is/here')`\n\n## How It Works (under the hood)\n\n> No need to read this unless you're curious—or you run into a (very unlikely) case where the module does not work as expected.\n\nThis module uses two different methods to determine the app's root path, depending on the circumstances.\n\n### Primary Method\n\nIf the module is located inside your project's directory, somewhere within the `node_modules` directory (whether directly, or inside a submodule), we effectively do (the actual code takes cross-platform path names/etc into consideration):\n\n``` js\npath.resolve(__dirname).split('/node_modules')[0];\n```\n\nThis will take a path like `/var/www/node_modules/submodule/node_modules/app-root-path` and return `/var/www`.  In nearly all cases, this is just what you need.\n\n### Secondary Method (for edge cases)\n\nThe node module loader will also look in a few other places for modules (for example, ones that you install globally with `npm install -g`).  These can be in one of: \n\n  - `$HOME/.node_modules`\n  - `$HOME/.node_libraries`\n  - `$PREFIX/lib/node`\n\nOr, anywhere in the `NODE_PATH` environmental variable ([see documentation](http://nodejs.org/api/modules.html#modules_loading_from_the_global_folders)).\n\nIn these cases, we fall back to an alternate trick:\n\n``` js\npath.dirname(require.main.filename);\n```\n\nWhen a file is run directly from Node, `require.main` is set to that file's `module`.  Each module has a `filename` property that refers to the filename of that module, so by fetching the directory name for that file, we at least get the directory of file passed to `node`.  In some cases (process managers and test suites, for example) this doesn't actually give the correct directory, though, so this method is only used as a fallback.\n\n### Edge-Case: Global CLIs\n\nIf your module is installed as a global CLI, for example in `/usr/local/lib/node_modules/yourmodule`, then\n`require.main.filename` will report `/usr/local/lib/node_modules/yourmodule/bin`, which is probably not what\nyou want. `app-root-path` is aware of this edge-case and will strip the `/bin` automatically.\n\n## Change Log\n\n### 3.1.0\n  - Added TypeScript types\n  - Added fallback for when `require.main` is missing (ESM imports)\n\n### 3.0.0\n  - Improved Yarn Plug'n'Play support\n  - Fixed bug when used with webpack\n\n### 2.2.1\n  - Better handling of webpack\n\n### 2.2.0\n  - Added support for Yarn Plug'n'Play\n  - Adjusted browser-shim to address webpack warnings\n  - Bumped minimum Node version to 6\n\n### 2.0.1\n  - Minor tweaks to how electron-specific logic runs. Should help with packagers that try to resolve all `require()` statements during packaging.\n\n### 2.0.0\n  - Removed official support for node < 4.0\n  - Removed support for passing `module.require` to `appRootPath.require` (which has been deprecated for a while)\n  - Implemented [semantic-release](https://github.com/semantic-release/semantic-release) from here on out\n  - Added browserify-compatible shim\n\n### 1.3.0\n  - Updated [electron](https://github.com/atom/electron) to match changes in version 1.0 of that project\n\n### 1.2.1\n  - Had to bump package version because 1.2.0 got published to npm as @beta\n\n### 1.2.0\n  - Special logic to resolve correctly when in an [electron](https://github.com/atom/electron) renderer process\n\n### 1.1.0\n  - Special logic to handle an edge case when used in a globally-installed CLI project\n  - Fixed a bug where `setPath()` did not update `require('app-root-path').path`\n  - Moved some logic outside of the `resolve()` function so that it's not called multiple times\n\n### 1.0.0\n  - No changes.  Just updated the version to signify a locked API (see [semver](http://semver.org/)).\n\n### 0.1.1\n  - Added Windows support (and, theoretically, other operating systems that have a directory separator that's not \"/\")\n\n### 0.1.0\n  - Completely rewrote the path resolution method to account for most possible scenarios.  This shouldn't cause and backwards compatibility issues, but always test your code.\n  - Removed the need to pass a modules's `require()` method to the `appRootPath.require()` function.  Which it's true that each module has its own `require()` method, in practice it doesn't matter, and it's **much** simpler this way.\n  - Added tests\n\n## Development Nodes\n\nWhen using [semantic-release](https://github.com/semantic-release/semantic-release), the preferred method \nfor commits is:\n\n  - `git add …`\n  - `git cz` (see [commitizen](https://github.com/commitizen/cz-cli))\n  - `git push`\n\nThis helps ensure that commits match the expected format.  Commits to `master` will cause releases.\n\n[build-status]: https://travis-ci.org/inxilpro/node-app-root-path\n[build-status-img]: https://travis-ci.org/inxilpro/node-app-root-path.svg\n[david-dm-img]: https://david-dm.org/inxilpro/node-app-root-path.svg\n[david-dm]: https://david-dm.org/inxilpro/node-app-root-path\n[codecov-img]: https://codecov.io/gh/inxilpro/node-app-root-path/branch/master/graph/badge.svg\n[codecov]: https://codecov.io/gh/inxilpro/node-app-root-path\n","_attachments":{},"homepage":"https://github.com/inxilpro/node-app-root-path","bugs":{"url":"https://github.com/inxilpro/node-app-root-path/issues"},"license":"MIT"}