{"_id":"fpj","_rev":"300269","name":"fpj","description":"Resolves The Location Of The Package.Json File For The Given Dependency By Traversing The File System Up Starting From Given Path.","dist-tags":{"latest":"1.3.1"},"maintainers":[{"name":"zvr","email":""}],"time":{"modified":"2024-01-31T16:07:40.000Z","created":"2019-02-08T17:01:13.162Z","1.3.1":"2020-02-23T00:13:06.365Z","1.3.0":"2019-04-25T09:28:53.792Z","1.2.1":"2019-04-18T03:55:11.347Z","1.2.0":"2019-04-18T03:50:22.184Z","1.1.0":"2019-04-05T11:31:51.681Z","1.0.1":"2019-04-03T15:36:09.666Z","1.0.0":"2019-02-08T17:01:13.162Z"},"users":{},"author":{"name":"Anton","email":"anton@adc.sh"},"repository":{"type":"git","url":"git://github.com/artdecocode/fpj.git"},"versions":{"1.3.1":{"name":"fpj","version":"1.3.1","description":"Resolves The Location Of The Package.Json File For The Given Dependency By Traversing The File System Up Starting From Given Path.","main":"build/index.js","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"yarn t test/spec test/mask","spec":"yarn t test/spec","mask":"yarn t test/mask","test-build":"yarn test -e test-build","lint":"eslint .","doc":"doc -o README.md -d","b":"alamode src -o build -s","d":"yarn-s d1 externs","d1":"typal src -c","externs":"typal externs.js -e","build":"yarn-s d b doc","rec":"NODE_DEBUG=appshot appshot -T 23 -a Terminal -y 150 -f","e":"alanode","example/":"yarn e example/example.js"},"externs":"externs.js","repository":{"type":"git","url":"git://github.com/artdecocode/fpj.git"},"keywords":["fpj","find","package.json","location","resolve"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/artdecocode/fpj/issues"},"homepage":"https://www.artd.eco/","devDependencies":{"alamode":"^3.5.1","documentary":"^1.37.0","eslint-config-artdeco":"1.0.1","yarn-s":"1.2.3","zoroaster":"^4.3.0"},"dependencies":{"@wrote/exists":"^1.0.5","@wrote/read":"^1.0.4","resolve-dependency":"^1.0.3"},"licenseText":"MIT License\n\nCopyright (c) 2019 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"fpj@1.3.1","dist":{"shasum":"44b27590c614c437f1afe930e67ad3f625b08ad7","size":5409,"noattachment":false,"key":"/fpj/-/fpj-1.3.1.tgz","tarball":"http://name.csiicloud.com:7001/fpj/download/fpj-1.3.1.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fpj_1.3.1_1582416786221_0.8499014526063489"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:19:55.110Z","publish_time":1582416786365,"_cnpm_publish_time":1582416786365},"1.3.0":{"name":"fpj","version":"1.3.0","description":"Resolves The Location Of The Package.Json File For The Given Dependency By Traversing The File System Up Starting From Given Path.","main":"build/index.js","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"yarn t test/spec test/mask","spec":"yarn t test/spec","mask":"yarn t test/mask","test-build":"ALAMODE_ENV=test-build yarn test","lint":"eslint .","doc":"NODE_DEBUG=doc doc -o README.md","b":"alamode src -o build -s","d":"yarn-s d1 externs","d1":"typal src -c","externs":"typal externs.js -e","build":"yarn-s d b doc","rec":"NODE_DEBUG=appshot appshot -T 23 -a Terminal -y 150 -f","e":"alanode","example/":"yarn e example/example.js"},"externs":"externs.js","repository":{"type":"git","url":"git://github.com/artdecocode/fpj.git"},"keywords":["fpj","find","package.json","location","resolve"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/artdecocode/fpj/issues"},"homepage":"https://github.com/artdecocode/fpj#readme","devDependencies":{"alamode":"^2.0.0","documentary":"^1.26.0","eslint-config-artdeco":"1.0.1","yarn-s":"1.1.0","zoroaster":"^3.13.0"},"dependencies":{"@wrote/exists":"^1.0.5","@wrote/read":"^1.0.4","resolve-dependency":"^1.0.3"},"licenseText":"MIT License\n\nCopyright (c) 2019 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"fpj@1.3.0","dist":{"shasum":"c01dd7d72e69fa5f82d339f5e6fbc3b3256d286a","size":5284,"noattachment":false,"key":"/fpj/-/fpj-1.3.0.tgz","tarball":"http://name.csiicloud.com:7001/fpj/download/fpj-1.3.0.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fpj_1.3.0_1556184533612_0.3447239300387013"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:19:54.241Z","publish_time":1556184533792,"_cnpm_publish_time":1556184533792},"1.2.1":{"name":"fpj","version":"1.2.1","description":"Resolves The Location Of The Package.Json File For The Given Dependency By Traversing The File System Up Starting From Given Path.","main":"build/index.js","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"yarn t test/spec test/mask","spec":"yarn t test/spec","mask":"yarn t test/mask","test-build":"ALAMODE_ENV=test-build yarn test","lint":"eslint .","doc":"NODE_DEBUG=doc doc documentary -o README.md","b":"alamode src -o build -s","d":"yarn-s d1","d1":"NODE_DEBUG=doc doc src/index.js -g","build":"yarn-s d b doc","rec":"NODE_DEBUG=appshot appshot -T 23 -a Terminal -y 150 -f","e":"alanode","example/":"yarn e example/example.js"},"repository":{"type":"git","url":"git://github.com/artdecocode/fpj.git"},"keywords":["fpj","find","package.json","location","resolve"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/artdecocode/fpj/issues"},"homepage":"https://github.com/artdecocode/fpj#readme","devDependencies":{"alamode":"^1.9.3","documentary":"^1.23.4","eslint-config-artdeco":"1.0.1","yarn-s":"1.1.0","zoroaster":"^3.11.6"},"dependencies":{"@wrote/exists":"^1.0.3","@wrote/read":"^1.0.4","resolve-dependency":"^1.0.2"},"licenseText":"MIT License\n\nCopyright (c) 2019 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"fpj@1.2.1","dist":{"shasum":"73e5169a91281d18bc4225e2cdf6cb77d2b9a89d","size":4975,"noattachment":false,"key":"/fpj/-/fpj-1.2.1.tgz","tarball":"http://name.csiicloud.com:7001/fpj/download/fpj-1.2.1.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fpj_1.2.1_1555559710995_0.3496811286811883"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:19:53.384Z","publish_time":1555559711347,"_cnpm_publish_time":1555559711347},"1.2.0":{"name":"fpj","version":"1.2.0","description":"Resolves The Location Of The Package.Json File For The Given Dependency By Traversing The File System Up Starting From Given Path.","main":"build/index.js","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"yarn t test/spec test/mask","spec":"yarn t test/spec","mask":"yarn t test/mask","test-build":"ALAMODE_ENV=test-build yarn test","lint":"eslint .","doc":"NODE_DEBUG=doc doc documentary -o README.md","b":"alamode src -o build -s","d":"yarn-s d1","d1":"NODE_DEBUG=doc doc src/index.js -g","build":"yarn-s d b doc","rec":"NODE_DEBUG=appshot appshot -T 23 -a Terminal -y 150 -f","e":"alanode","example/":"yarn e example/example.js"},"repository":{"type":"git","url":"git://github.com/artdecocode/fpj.git"},"keywords":["fpj","find","package.json","location","resolve"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/artdecocode/fpj/issues"},"homepage":"https://github.com/artdecocode/fpj#readme","devDependencies":{"alamode":"^1.9.2","documentary":"^1.23.4","eslint-config-artdeco":"1.0.1","yarn-s":"1.1.0","zoroaster":"^3.11.4"},"dependencies":{"@wrote/exists":"^1.0.3","@wrote/read":"^1.0.3","resolve-dependency":"^1.0.2"},"licenseText":"MIT License\n\nCopyright (c) 2019 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"fpj@1.2.0","dist":{"shasum":"d441fb62089a4ba4efadb426c387442362f4be70","size":4966,"noattachment":false,"key":"/fpj/-/fpj-1.2.0.tgz","tarball":"http://name.csiicloud.com:7001/fpj/download/fpj-1.2.0.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fpj_1.2.0_1555559422065_0.8888498390761297"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:19:52.526Z","publish_time":1555559422184,"_cnpm_publish_time":1555559422184},"1.1.0":{"name":"fpj","version":"1.1.0","description":"Resolves The Location Of The Package.Json File For The Given Dependency By Traversing The File System Up Starting From Given Path.","main":"build/index.js","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"yarn t test/spec test/mask","spec":"yarn t test/spec","mask":"yarn t test/mask","test-build":"ALAMODE_ENV=test-build yarn test","lint":"eslint .","doc":"NODE_DEBUG=doc doc documentary -o README.md","b":"alamode src -o build -s","d":"yarn-s d1","d1":"NODE_DEBUG=doc doc src/index.js -g","build":"yarn-s d b doc","rec":"NODE_DEBUG=appshot appshot -T 23 -a Terminal -y 150 -f","e":"alanode","example/":"yarn e example/example.js"},"repository":{"type":"git","url":"git://github.com/artdecocode/fpj.git"},"keywords":["fpj","find","package.json","location","resolve"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/artdecocode/fpj/issues"},"homepage":"https://github.com/artdecocode/fpj#readme","devDependencies":{"alamode":"^1.9.2","documentary":"^1.23.4","eslint-config-artdeco":"1.0.1","yarn-s":"1.1.0","zoroaster":"^3.11.4"},"dependencies":{"@wrote/exists":"^1.0.3","@wrote/read":"^1.0.3","resolve-dependency":"^1.0.2"},"licenseText":"MIT License\n\nCopyright (c) 2019 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"fpj@1.1.0","dist":{"shasum":"8c9f605cbce010d37a9c8b19638abd607853fa23","size":4887,"noattachment":false,"key":"/fpj/-/fpj-1.1.0.tgz","tarball":"http://name.csiicloud.com:7001/fpj/download/fpj-1.1.0.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fpj_1.1.0_1554463911566_0.6430493956704311"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:19:51.659Z","publish_time":1554463911681,"_cnpm_publish_time":1554463911681},"1.0.1":{"name":"fpj","version":"1.0.1","description":"Resolves The Location Of The Package.Json File For The Given Dependency By Traversing The File System Up Starting From Given Path.","main":"build/index.js","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"yarn t test/spec test/mask","spec":"yarn t test/spec","mask":"yarn t test/mask","test-build":"ALAMODE_ENV=test-build yarn test","lint":"eslint .","doc":"NODE_DEBUG=doc doc documentary -o README.md","b":"alamode src -o build -s","d":"yarn-s d1","d1":"NODE_DEBUG=doc doc src/index.js -g","build":"yarn-s d b doc","rec":"NODE_DEBUG=appshot appshot -T 23 -a Terminal -y 150 -f","e":"alanode","example/":"yarn e example/example.js"},"repository":{"type":"git","url":"git://github.com/artdecocode/fpj.git"},"keywords":["fpj","find","package.json","location","resolve"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/artdecocode/fpj/issues"},"homepage":"https://github.com/artdecocode/fpj#readme","devDependencies":{"alamode":"1.9.1","documentary":"1.23.2","eslint-config-artdeco":"1.0.1","yarn-s":"1.1.0","zoroaster":"3.11.2"},"dependencies":{"@wrote/exists":"1.0.3","@wrote/read":"1.0.3"},"licenseText":"MIT License\n\nCopyright (c) 2019 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"fpj@1.0.1","dist":{"shasum":"0679a623253acc3c793cf004985722e2b74ff312","size":3733,"noattachment":false,"key":"/fpj/-/fpj-1.0.1.tgz","tarball":"http://name.csiicloud.com:7001/fpj/download/fpj-1.0.1.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fpj_1.0.1_1554305769480_0.13474578995628894"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:19:50.765Z","publish_time":1554305769666,"_cnpm_publish_time":1554305769666},"1.0.0":{"name":"fpj","version":"1.0.0","description":"Resolves The Location Of The Package.Json File For The Given Dependency By Traversing The File System Up Starting From Given Path.","main":"build/index.js","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"yarn t test/spec test/mask","spec":"yarn t test/spec","mask":"yarn t test/mask","test-build":"ALAMODE_ENV=test-build yarn test","lint":"eslint .","doc":"NODE_DEBUG=doc doc documentary -o README.md","b":"alamode src -o build -s","d":"yarn-s d1","d1":"NODE_DEBUG=doc doc src/index.js -g","build":"yarn-s d b doc","rec":"NODE_DEBUG=appshot appshot -T 23 -a Terminal -y 150 -f","e":"node example","example/":"yarn e example/example.js"},"repository":{"type":"git","url":"git://github.com/artdecocode/fpj.git"},"keywords":["fpj","find","package.json","location","resolve"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/artdecocode/fpj/issues"},"homepage":"https://github.com/artdecocode/fpj#readme","devDependencies":{"alamode":"1.7.3","documentary":"1.21.1","eslint-config-artdeco":"1.0.1","yarn-s":"1.1.0","zoroaster":"3.6.6"},"dependencies":{"@wrote/exists":"1.0.1","@wrote/read":"1.0.2"},"licenseText":"MIT License\n\nCopyright (c) 2019 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"fpj@1.0.0","dist":{"shasum":"82d0dd38e387b5b36ca0d5f5d13a61263c2af3a1","size":3682,"noattachment":false,"key":"/fpj/-/fpj-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/fpj/download/fpj-1.0.0.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fpj_1.0.0_1549645273015_0.34318229059244687"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:19:49.918Z","publish_time":1549645273162,"_cnpm_publish_time":1549645273162}},"readme":"# fpj: **Find Package Json**\n\n[![npm version](https://badge.fury.io/js/fpj.svg)](https://www.npmjs.com/package/fpj)\n\n`fpj` Resolves The Location Of The Package.Json File For The Given Dependency By Traversing The File System Up Starting From Given Path.\n\n```sh\nyarn add -E fpj\n```\n\n## Table Of Contents\n\n- [Table Of Contents](#table-of-contents)\n- [API](#api)\n- [`async fpj(dirname: string, packageName: string, opts?: FPJConfig): FPJReturn`](#async-fpjdirname-stringpackagename-stringopts-fpjconfig-fpjreturn)\n  * [`_fpj.Config`](#type-_fpjconfig)\n  * [`_fpj.Return`](#type-_fpjreturn)\n- [Fields](#fields)\n- [Soft Mode](#soft-mode)\n- [Copyright](#copyright)\n\n<p align=\"center\"><a href=\"#table-of-contents\">\n  <img src=\"/.documentary/section-breaks/0.svg?sanitize=true\">\n</a></p>\n\n## API\n\nThe package is available by importing its default function:\n\n```js\nimport fpj from 'fpj'\n```\n\n<p align=\"center\"><a href=\"#table-of-contents\">\n  <img src=\"/.documentary/section-breaks/1.svg?sanitize=true\">\n</a></p>\n\n## <code>async <ins>fpj</ins>(</code><sub><br/>&nbsp;&nbsp;`dirname: string,`<br/>&nbsp;&nbsp;`packageName: string,`<br/>&nbsp;&nbsp;`opts?: FPJConfig,`<br/></sub><code>): <i>FPJReturn</i></code>\n\nReturns the resolved entry point to the package. It will start checking for the presence of packages using Node's algorithm by resolving the `node_modules` folder first inside of the given _dirname_, then if not found, traverse up and repeat, until root of the OS is reached.\n\nThe preference of the `entry` output will be given to the `module` field specified in the _package.json_. If the `main` is found instead, it will be indicated with `hasMain` property on the returned object.\n\n<strong><a name=\"type-_fpjconfig\">`_fpj.Config`</a></strong>: The options for `fpj`.\n\n|  Name  |             Type              |                                                                       Description                                                                       | Default |\n| ------ | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |\n| fields | <em>!Array&lt;string&gt;</em> | Any additional fields from `package.json` file to return.                                                                                               | -       |\n| soft   | <em>boolean</em>              | If the entry export (main or module) does not exist, `soft` mode will not throw an error, but add the `hasEntry` property to the output set to _false_. | `false` |\n\n_For example, the `package.json` files and meta information for 2 packages can be fetched using the following example:_\n\n```js\n/* yarn example/ */\nimport fpj from 'fpj'\nimport { dirname } from 'path'\n\n(async () => {\n  const zoroaster = await fpj(\n    dirname('example/example.js'),\n    'zoroaster'\n  )\n  console.log(zoroaster)\n  const read = await fpj(\n    dirname('example/example.js'),\n    '@wrote/read'\n  )\n  console.log(read)\n})()\n```\n\n_FPJ gives preference to the `module` field and will report it as the entry if it exists. Otherwise, the `main` is used with the `hasMain` property set to true:_\n\n```js\n{\n  entry: 'node_modules\\\\zoroaster\\\\depack\\\\index.js',\n  packageJson: 'node_modules\\\\zoroaster\\\\package.json',\n  version: '4.3.0',\n  packageName: 'zoroaster',\n  hasMain: true\n}\n{\n  entry: 'node_modules\\\\@wrote\\\\read\\\\src\\\\index.js',\n  packageJson: 'node_modules\\\\@wrote\\\\read\\\\package.json',\n  version: '1.0.4',\n  packageName: '@wrote/read'\n}\n```\n\n<strong><a name=\"type-_fpjreturn\">`_fpj.Return`</a></strong>: The return type of the program.\n\n|       Name       |       Type       |                                       Description                                        |\n| ---------------- | ---------------- | ---------------------------------------------------------------------------------------- |\n| __entry*__       | <em>string</em>  | The location of the package's entry file. The preference is given to the `module` field. |\n| __packageJson*__ | <em>string</em>  | The path to the package.json file itself.                                                |\n| __packageName*__ | <em>string</em>  | The name of the resolved package.                                                        |\n| version          | <em>string</em>  | The version of the package.                                                              |\n| hasMain          | <em>boolean</em> | Whether the entry is the `main` rather than `module`.                                    |\n| entryExists      | <em>boolean</em> | In soft mode, will be set to `false` if the entry file does not exist.                   |\n\n<p align=\"center\"><a href=\"#table-of-contents\">\n  <img src=\"/.documentary/section-breaks/2.svg?sanitize=true\">\n</a></p>\n\n## Fields\n\nAny additional fields from `package.json` that need to be present in the output can be specified in the `fields` property.\n\n```js\n/* yarn example/ */\nimport fpj from 'fpj'\nimport { dirname } from 'path'\n\n(async () => {\n  const zoroaster = await fpj(\n    dirname('example/example.js'),\n    'zoroaster',\n    { fields: ['license', 'bin'] },\n  )\n  console.log(zoroaster)\n})()\n```\n```js\n{\n  entry: 'node_modules\\\\zoroaster\\\\depack\\\\index.js',\n  packageJson: 'node_modules\\\\zoroaster\\\\package.json',\n  version: '4.3.0',\n  packageName: 'zoroaster',\n  hasMain: true,\n  license: 'AGPL-3.0',\n  bin: {\n    zoroaster: 'depack/bin/zoroaster.js',\n    'zoroaster-dev': 'src/bin/index.js'\n  }\n}\n```\n\n<p align=\"center\"><a href=\"#table-of-contents\">\n  <img src=\"/.documentary/section-breaks/3.svg?sanitize=true\">\n</a></p>\n\n## Soft Mode\n\nWhen a package exports either a main or a module fields, `fpj` will check for their existence to resolve the path to the entry. When the entry does not exist, by default an error will be thrown. To disable the error, and add the `entryExists: false` to the output, the _Soft Mode_ can be activated.\n\n```js\n/* yarn example/ */\nimport fpj from 'fpj'\nimport { dirname } from 'path'\n\n(async () => {\n  const zoroaster = await fpj(\n    dirname('example/example.js'),\n    'myPackage',\n    { soft: true },\n  )\n  console.log(zoroaster)\n})()\n```\n```js\n{\n  entry: 'example\\\\node_modules\\\\myPackage\\\\index.js',\n  packageJson: 'example\\\\node_modules\\\\myPackage\\\\package.json',\n  version: '1.0.0',\n  packageName: 'myPackage',\n  hasMain: true,\n  entryExists: false\n}\n```\n\n<p align=\"center\"><a href=\"#table-of-contents\">\n  <img src=\"/.documentary/section-breaks/4.svg?sanitize=true\">\n</a></p>\n\n\n## Copyright\n\n<table>\n  <tr>\n    <th>\n      <a href=\"https://www.artd.eco\">\n        <img width=\"100\" src=\"https://raw.githubusercontent.com/wrote/wrote/master/images/artdeco.png\"\n          alt=\"Art Deco\">\n      </a>\n    </th>\n    <th>© <a href=\"https://www.artd.eco\">Art Deco™</a>   2020</th>\n  </tr>\n</table>\n\n<p align=\"center\"><a href=\"#table-of-contents\">\n  <img src=\"/.documentary/section-breaks/-1.svg?sanitize=true\">\n</a></p>","_attachments":{},"homepage":"https://www.artd.eco/","bugs":{"url":"https://github.com/artdecocode/fpj/issues"},"license":"MIT"}