{"_id":"pjson","_rev":"4079932","name":"pjson","description":"Reads package.json regardless of it's path, always finds the root one. Returns an object","dist-tags":{"latest":"1.0.9"},"maintainers":[{"name":"serkanyersen","email":""}],"time":{"modified":"2025-10-16T23:04:58.000Z","created":"2015-07-06T02:04:16.538Z","1.0.9":"2017-09-01T20:34:36.887Z","1.0.8":"2017-03-06T07:46:20.032Z","1.0.7":"2015-10-04T08:09:20.181Z","1.0.6":"2015-10-04T08:01:55.225Z","1.0.5":"2015-10-04T07:58:18.013Z","1.0.4":"2015-07-06T03:05:00.165Z","1.0.3":"2015-07-06T03:02:00.582Z","1.0.2":"2015-07-06T02:57:52.964Z","1.0.1":"2015-07-06T02:50:47.145Z","1.0.0":"2015-07-06T02:04:16.538Z"},"users":{},"author":{"name":"Serkan Yersen","email":"serkanyersen@gmail.com","url":"http://serkan.io/"},"repository":{"type":"git","url":"git+https://github.com/serkanyersen/pjson.git"},"versions":{"1.0.9":{"name":"pjson","version":"1.0.9","description":"Reads package.json regardless of it's path, always finds the root one. Returns an object","main":"pjson.js","repository":{"type":"git","url":"git+https://github.com/serkanyersen/pjson.git"},"keywords":["package.json","version","package","info","typescript","utility"],"types":"pjson.d.ts","typescript":{"definition":"pjson.d.ts"},"author":{"name":"Serkan Yersen","email":"serkanyersen@gmail.com","url":"http://serkan.io/"},"license":"MIT","bugs":{"url":"https://github.com/serkanyersen/pjson/issues"},"homepage":"https://github.com/serkanyersen/pjson#readme","gitHead":"b016bcbef55d1e8937fbdf6abfc176eeacef8e00","_id":"pjson@1.0.9","_npmVersion":"5.3.0","_nodeVersion":"6.11.1","_npmUser":{"name":"serkanyersen","email":"serkanyersen@gmail.com"},"dist":{"shasum":"8a9520ce76a4739f8fee91679dad6b065b1c7938","size":3456,"noattachment":false,"key":"/pjson/-/pjson-1.0.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/pjson/download/pjson-1.0.9.tgz"},"maintainers":[{"name":"serkanyersen","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pjson-1.0.9.tgz_1504298076727_0.5581303485669196"},"directories":{},"publish_time":1504298076887,"_hasShrinkwrap":false,"_cnpm_publish_time":1504298076887,"_cnpmcore_publish_time":"2021-12-16T15:49:01.547Z"},"1.0.8":{"name":"pjson","version":"1.0.8","description":"Reads package.json regardless of it's path, always finds the root one. Returns an object","main":"pjson.js","repository":{"type":"git","url":"git+https://github.com/serkanyersen/pjson.git"},"keywords":["package.json","version","package","info","typescript","utility"],"types":"pjson.d.ts","typescript":{"definition":"pjson.d.ts"},"author":{"name":"Serkan Yersen","email":"serkanyersen@gmail.com","url":"http://serkan.io/"},"license":"MIT","bugs":{"url":"https://github.com/serkanyersen/pjson/issues"},"homepage":"https://github.com/serkanyersen/pjson#readme","gitHead":"0c1c882d236e83080bacceaf519e7a30fe5f8ff6","_id":"pjson@1.0.8","scripts":{},"_shasum":"7547730d27fd42eee39be746da925d9a4e57f40d","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.2","_npmUser":{"name":"serkanyersen","email":"serkanyersen@gmail.com"},"dist":{"shasum":"7547730d27fd42eee39be746da925d9a4e57f40d","size":3439,"noattachment":false,"key":"/pjson/-/pjson-1.0.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/pjson/download/pjson-1.0.8.tgz"},"maintainers":[{"name":"serkanyersen","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pjson-1.0.8.tgz_1488786379808_0.9680536512751132"},"directories":{},"publish_time":1488786380032,"_hasShrinkwrap":false,"_cnpm_publish_time":1488786380032,"_cnpmcore_publish_time":"2021-12-16T15:49:01.738Z"},"1.0.7":{"name":"pjson","version":"1.0.7","description":"Reads package.json regardless of it's path, always finds the root one. Returns an object","main":"pjson.js","repository":{"type":"git","url":"git+https://github.com/serkanyersen/pjson.git"},"keywords":["package.json","version","package","info","typescript","utility"],"typescript":{"definition":"pjson.d.ts"},"author":{"name":"Serkan Yersen","email":"serkanyersen@gmail.com","url":"http://serkan.io/"},"license":"MIT","bugs":{"url":"https://github.com/serkanyersen/pjson/issues"},"homepage":"https://github.com/serkanyersen/pjson#readme","gitHead":"ab206d3e21a40055e716dd0de083dc962040d0ee","_id":"pjson@1.0.7","scripts":{},"_shasum":"b6fbacd54589be426b4df3e7929d092a6ae4f95b","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.10.38","_npmUser":{"name":"serkanyersen","email":"serkanyersen@gmail.com"},"dist":{"shasum":"b6fbacd54589be426b4df3e7929d092a6ae4f95b","size":3381,"noattachment":false,"key":"/pjson/-/pjson-1.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/pjson/download/pjson-1.0.7.tgz"},"maintainers":[{"name":"serkanyersen","email":""}],"directories":{},"publish_time":1443946160181,"_hasShrinkwrap":false,"_cnpm_publish_time":1443946160181,"_cnpmcore_publish_time":"2021-12-16T15:49:01.939Z"},"1.0.6":{"name":"pjson","version":"1.0.6","description":"Reads package.json regardless of it's path, always finds the root one. Returns an object","main":"pjson.js","repository":{"type":"git","url":"git+https://github.com/serkanyersen/pjson.git"},"keywords":["package.json","version","package","info","typescript","utility"],"typescript":{"definition":"pjson.d.ts"},"author":{"name":"Serkan Yersen","email":"serkanyersen@gmail.com","url":"http://serkan.io/"},"license":"MIT","bugs":{"url":"https://github.com/serkanyersen/pjson/issues"},"homepage":"https://github.com/serkanyersen/pjson#readme","gitHead":"ff41b69c948439d3400a77762e8d38e2dcae2088","_id":"pjson@1.0.6","scripts":{},"_shasum":"ed0de053c146bd06cd4fdf8a9ec0509db4ddeb19","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.10.38","_npmUser":{"name":"serkanyersen","email":"serkanyersen@gmail.com"},"dist":{"shasum":"ed0de053c146bd06cd4fdf8a9ec0509db4ddeb19","size":3379,"noattachment":false,"key":"/pjson/-/pjson-1.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/pjson/download/pjson-1.0.6.tgz"},"maintainers":[{"name":"serkanyersen","email":""}],"directories":{},"publish_time":1443945715225,"_hasShrinkwrap":false,"_cnpm_publish_time":1443945715225,"_cnpmcore_publish_time":"2021-12-16T15:49:02.296Z"},"1.0.5":{"name":"pjson","version":"1.0.5","description":"Reads package.json regardless of it's path, always finds the root one. Returns an object","main":"pjson.js","repository":{"type":"git","url":"git+https://github.com/serkanyersen/pjson.git"},"keywords":["package.json","version","package","info","typescript","utility"],"typescript":{"definition":"pjson.d.ts"},"author":{"name":"Serkan Yersen","email":"serkanyersen@gmail.com","url":"http://serkan.io/"},"license":"MIT","bugs":{"url":"https://github.com/serkanyersen/pjson/issues"},"homepage":"https://github.com/serkanyersen/pjson#readme","gitHead":"6eb880eac08805d45be2c149f10a6019ef0f68f2","_id":"pjson@1.0.5","scripts":{},"_shasum":"8c511023cb9cc1e534ce83ea4fe7d79c18a88726","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.10.38","_npmUser":{"name":"serkanyersen","email":"serkanyersen@gmail.com"},"dist":{"shasum":"8c511023cb9cc1e534ce83ea4fe7d79c18a88726","size":3385,"noattachment":false,"key":"/pjson/-/pjson-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/pjson/download/pjson-1.0.5.tgz"},"maintainers":[{"name":"serkanyersen","email":""}],"directories":{},"publish_time":1443945498013,"_hasShrinkwrap":false,"_cnpm_publish_time":1443945498013,"_cnpmcore_publish_time":"2021-12-16T15:49:02.496Z"},"1.0.4":{"name":"pjson","version":"1.0.4","description":"Reads package.json regardless of it's path, always finds the root one. Returns an object","main":"pjson.js","repository":{"type":"git","url":"git+https://github.com/serkanyersen/pjson.git"},"keywords":["package.json","version","package","info","typescript","utility"],"typescript":{"definition":"pjson.d.ts"},"author":{"name":"Serkan Yersen","email":"serkanyersen@gmail.com","url":"http://serkan.io/"},"license":"MIT","bugs":{"url":"https://github.com/serkanyersen/pjson/issues"},"homepage":"https://github.com/serkanyersen/pjson#readme","gitHead":"0c266248d1f545f2876774276657b69302bb38ed","_id":"pjson@1.0.4","scripts":{},"_shasum":"cf954ee88e41fd2cfa22a33797e0022fc384ce21","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.10.38","_npmUser":{"name":"serkanyersen","email":"serkanyersen@gmail.com"},"dist":{"shasum":"cf954ee88e41fd2cfa22a33797e0022fc384ce21","size":3369,"noattachment":false,"key":"/pjson/-/pjson-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/pjson/download/pjson-1.0.4.tgz"},"maintainers":[{"name":"serkanyersen","email":""}],"directories":{},"publish_time":1436151900165,"_hasShrinkwrap":false,"_cnpm_publish_time":1436151900165,"_cnpmcore_publish_time":"2021-12-16T15:49:02.714Z"},"1.0.3":{"name":"pjson","version":"1.0.3","description":"Reads package.json regardless of it's path, always finds the root one. Returns an object","main":"pjson.js","repository":{"type":"git","url":"git+https://github.com/serkanyersen/pjson.git"},"keywords":["package.json","version","package","info","typescript","utility"],"typescript":{"definition":"pjson.d.ts"},"author":{"name":"Serkan Yersen","email":"serkanyersen@gmail.com","url":"http://serkan.io/"},"license":"MIT","bugs":{"url":"https://github.com/serkanyersen/pjson/issues"},"homepage":"https://github.com/serkanyersen/pjson#readme","gitHead":"6baaf560d5a3349abf7361b041e63c2adfcc6892","_id":"pjson@1.0.3","scripts":{},"_shasum":"b228c28e5dc6ab66ca7c80fb84b509fc72fb3b45","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.10.38","_npmUser":{"name":"serkanyersen","email":"serkanyersen@gmail.com"},"dist":{"shasum":"b228c28e5dc6ab66ca7c80fb84b509fc72fb3b45","size":3374,"noattachment":false,"key":"/pjson/-/pjson-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/pjson/download/pjson-1.0.3.tgz"},"maintainers":[{"name":"serkanyersen","email":""}],"directories":{},"publish_time":1436151720582,"_hasShrinkwrap":false,"_cnpm_publish_time":1436151720582,"_cnpmcore_publish_time":"2021-12-16T15:49:02.945Z"},"1.0.2":{"name":"pjson","version":"1.0.2","description":"Reads package.json regardless of it's path, always finds the root one. Returns an object","main":"package.js","repository":{"type":"git","url":"git+https://github.com/serkanyersen/pjson.git"},"keywords":["package.json","version","package","info","typescript","utility"],"typescript":{"definition":"pjson.d.ts"},"author":{"name":"Serkan Yersen","email":"serkanyersen@gmail.com","url":"http://serkan.io/"},"license":"MIT","bugs":{"url":"https://github.com/serkanyersen/pjson/issues"},"homepage":"https://github.com/serkanyersen/pjson#readme","gitHead":"d89712fa4eb7e9560ccac16911cb04d3cfb2a133","_id":"pjson@1.0.2","scripts":{},"_shasum":"c5f9516fd24178046331e2d4523cce9ce3244a7b","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.10.38","_npmUser":{"name":"serkanyersen","email":"serkanyersen@gmail.com"},"dist":{"shasum":"c5f9516fd24178046331e2d4523cce9ce3244a7b","size":3383,"noattachment":false,"key":"/pjson/-/pjson-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/pjson/download/pjson-1.0.2.tgz"},"maintainers":[{"name":"serkanyersen","email":""}],"directories":{},"publish_time":1436151472964,"_hasShrinkwrap":false,"_cnpm_publish_time":1436151472964,"_cnpmcore_publish_time":"2021-12-16T15:49:03.173Z"},"1.0.1":{"name":"pjson","version":"1.0.1","description":"Reads package.json regardless of it's path, always finds the root one. Returns an object","main":"package.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/serkanyersen/pjson.git"},"keywords":["package.json","version","package","info","typescript","utility"],"author":{"name":"Serkan Yersen","email":"serkanyersen@gmail.com","url":"http://serkan.io/"},"license":"MIT","bugs":{"url":"https://github.com/serkanyersen/pjson/issues"},"homepage":"https://github.com/serkanyersen/pjson#readme","gitHead":"acac3c241d1582facbb16d18e3d837e4f39be0b9","_id":"pjson@1.0.1","_shasum":"7b41f0af9b981b8bc5b2b9c08cab65b106bc0a08","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.10.38","_npmUser":{"name":"serkanyersen","email":"serkanyersen@gmail.com"},"dist":{"shasum":"7b41f0af9b981b8bc5b2b9c08cab65b106bc0a08","size":3413,"noattachment":false,"key":"/pjson/-/pjson-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pjson/download/pjson-1.0.1.tgz"},"maintainers":[{"name":"serkanyersen","email":""}],"directories":{},"publish_time":1436151047145,"_hasShrinkwrap":false,"_cnpm_publish_time":1436151047145,"_cnpmcore_publish_time":"2021-12-16T15:49:03.419Z"},"1.0.0":{"name":"pjson","version":"1.0.0","description":"Reads package.json regardless of it's path, always finds the root one. Returns an object","main":"package.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/serkanyersen/pjson.git"},"keywords":["package.json","version","package","info","typescript","utility"],"author":{"name":"Serkan Yersen","email":"serkanyersen@gmail.com","url":"http://serkan.io/"},"license":"MIT","bugs":{"url":"https://github.com/serkanyersen/pjson/issues"},"homepage":"https://github.com/serkanyersen/pjson#readme","gitHead":"bce478861407a472de251ae0a67e82a2a61a9b1c","_id":"pjson@1.0.0","_shasum":"0e2e385665808bb6818834f1f910f106b6f7c26a","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.10.38","_npmUser":{"name":"serkanyersen","email":"serkanyersen@gmail.com"},"dist":{"shasum":"0e2e385665808bb6818834f1f910f106b6f7c26a","size":1843,"noattachment":false,"key":"/pjson/-/pjson-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pjson/download/pjson-1.0.0.tgz"},"maintainers":[{"name":"serkanyersen","email":""}],"directories":{},"publish_time":1436148256538,"_hasShrinkwrap":false,"_cnpm_publish_time":1436148256538,"_cnpmcore_publish_time":"2021-12-16T15:49:03.644Z"}},"readme":"# PJSON\n\nPJSON is a simple npm package that let's you read the package.json file.\n\n## Usage\n\nInstall it\n```\nnpm install pjson --save\n```\n\nand use it in your code like this\n\n```javascript\nvar pjson = require('pjson');\n\n// simply access values package.json\nconsole.log(pjson.version);\n```\n\n## Why?\n\nIn Node.js you can already import json files by simple giving their names in the `require` statements but this approach doesn't always work well.  \n\nFirst of all it's path dependend. So if your project has a nested structure you might endup with a code that looks like this\n\n```javascript\nvar pjson = require('../../../package.json');\n```\n\n#### TypeScript\n\nIn typescript you cannot create module definitions for relatively imported things. PJSON resolves this issue for you because you can import it just by name\n\n#### Old versions of Node\n\nImporting JSON files using require is only enabled on late versions of node. For old versions, PJSON is might be useful\n\n#### Because I need it\n\nIt's simple, I needed it for my own project and I though it might be useful for other as well :)\n","_attachments":{},"homepage":"https://github.com/serkanyersen/pjson#readme","bugs":{"url":"https://github.com/serkanyersen/pjson/issues"},"license":"MIT"}