{"name":"jsonpointer","description":"Simple JSON Addressing.","tags":["util","simple","util","utility"],"version":"5.0.0","author":{"name":"Jan Lehnardt","email":"jan@apache.org"},"contributors":[{"name":"Joe Hildebrand","email":"joe-github@cursive.net"},{"name":"Marc Bachmann","email":"marc.brookman@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/janl/node-jsonpointer.git"},"bugs":{"url":"http://github.com/janl/node-jsonpointer/issues"},"engines":{"node":">=0.10.0"},"main":"./jsonpointer","typings":"jsonpointer.d.ts","scripts":{"test":"npm run test:standard && npm run test:all","test:standard":"standard","test:all":"node test.js","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"license":"MIT","devDependencies":{"semantic-release":"^18.0.0","standard":"^16.0.4"},"standard":{"ignore":["test.js"]},"gitHead":"8dbf3046befe610cef2d16a3df5c4a30dda9b61d","homepage":"https://github.com/janl/node-jsonpointer#readme","_id":"jsonpointer@5.0.0","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"integrity":"sha512-PNYZIdMjVIvVgDSYKTT63Y+KZ6IZvGRNNWcxwD+GNnUz1MKPfv30J8ueCjdwcN0nDx2SlshgyB7Oy0epAzVRRg==","shasum":"f802669a524ec4805fa7389eadbc9921d5dc8072","tarball":"http://registry-npm.ywwl.com/jsonpointer/download/jsonpointer-5.0.0.tgz","fileCount":5,"unpackedSize":6768,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2wx1CRA9TVsSAnZWagAAa1sP/13dhU54j1Vk21Vc7Cll\n3FNGMtpYu4gCuaussiQ6IaLAlKmvMM8p3wd+jcbtOkgYgnERvamBirIfHBoq\nd+3DimFek5+UWggdLKTDI5fNZEb5cOaSf15zJH8FVcFny4HE8udPYBJ4HShA\nmSTAc0ipXI3NPZbYHcLcmC/WYkeY+x3pJANwq83I9r9WEnqCu1b5qXT+EVf+\ndvs2s5p/XhC1OaopQ3p7FLmdKMOFnixcWJBMruoGuA6HpXUMNI5b4R3PVHzh\nxa/EiIq9S6nAe0SsgbRVJ0AocUj8MTvCKKgvBHUMSfnXzmMSr+75ihaQiQE1\nT5glB3ncsIWS3JuVScS4/f7IcNPdynQz824YUiML8Rzc23sFsvB/NlWmMFJJ\n81IN6uqsG4M79CEIPwT7wDYa7/ZBKxZfC6q9sq4ZU2J1wluFVcu/dwF0AhZN\ncxGs9WMeXDn3yDOZbz+i3ktbGYC+8TUtZ8n3cjo1J/eCAGMT2p2j31SHVXFY\nkNt9UfuDIY4y7zHw4Ly9Mr3Oz+3mZ7sBHsn72VHB1dt/raY0e3q8E+SGBsfH\nUbJwn6mIgqNU+uuvzY46DO+7F1GP81hDOcdYVUnC8C8ncj7TdRZdSJqspLct\n4DaxnX14Ogk6Nq0h7dDiHhf7EHvwSPPvnYpr4ZTNxGWzQWNfV0BC0vPztdMl\n6bkK\r\n=ZKRx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDs0R/U+HJWx891OjP3dmOnFI9gCTSLmwYrO2gyQzNRdAiAfVVNVyir4Qq8Fy86NKyCTDkcqlwIl2Gf2HvKyEh9U4g=="}],"size":2775,"noattachment":false,"key":"/jsonpointer/-/jsonpointer-5.0.0.tgz"},"_npmUser":{"name":"jan","email":"jan@apache.org"},"directories":{},"maintainers":[{"name":"jan","email":"jan@apache.org"},{"name":"marcbachmann","email":"marc.brookman@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jsonpointer_5.0.0_1635701826402_0.6408003804728095"},"_hasShrinkwrap":false,"readme":"# JSON Pointer for Node.js\n\nThis is an implementation of [JSON Pointer](https://tools.ietf.org/html/rfc6901).\n\n## CLI\n\nLooking to filter JSON from the command line? Check out [jsonpointer-cli](https://github.com/joeyespo/jsonpointer-cli).\n\n## Usage\n```javascript\nvar jsonpointer = require('jsonpointer');\nvar obj = { foo: 1, bar: { baz: 2}, qux: [3, 4, 5]};\n\njsonpointer.get(obj, '/foo');     // returns 1\njsonpointer.get(obj, '/bar/baz'); // returns 2\njsonpointer.get(obj, '/qux/0');   // returns 3\njsonpointer.get(obj, '/qux/1');   // returns 4\njsonpointer.get(obj, '/qux/2');   // returns 5\njsonpointer.get(obj, '/quo');     // returns undefined\n\njsonpointer.set(obj, '/foo', 6);  // sets obj.foo = 6;\njsonpointer.set(obj, '/qux/-', 6) // sets obj.qux = [3, 4, 5, 6]\n\nvar pointer = jsonpointer.compile('/foo')\npointer.get(obj)    // returns 1\npointer.set(obj, 1) // sets obj.foo = 1\n```\n\n## Testing\n\n    $ npm test\n    All tests pass.\n    $\n\n[![Node.js CI](https://github.com/janl/node-jsonpointer/actions/workflows/node.js.yml/badge.svg)](https://github.com/janl/node-jsonpointer/actions/workflows/node.js.yml)\n\n## Author\n\n(c) 2011-2021 Jan Lehnardt <jan@apache.org> & Marc Bachmann <https://github.com/marcbachmann>\n\nThanks to all contributors.\n\n## License\n\nMIT License.\n","publish_time":1635701826542,"_cnpm_publish_time":1635701826542,"dist-tags":{"latest":"5.0.1"}}