{"_id":"bplist-parser@0.5.0","bugs":{"url":"https://github.com/joeferner/node-bplist-parser/issues"},"dist":{"shasum":"2d682123e7a6857c6b52ddda63336fcb93beadd4","tarball":"http://registry-npm.ywwl.com/bplist-parser/download/bplist-parser-0.5.0.tgz","fileCount":8,"integrity":"sha512-owgQ0RGbndIGNrQkpHe99HVSslIK59t31nVyAPDRqhq9mNDc2kRl5HwYO292GuKjHqiJRdJNiaI63a02hjLFIQ==","signatures":[{"sig":"MEYCIQCaP0R0jXgUUfs4avpwGP8AJRFGMS8KjGrpOiGWLONpSwIhAKakBVdTGTp/t1Qlset1gmz3cCcusUtQJgB/9+8t9JZU","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIE4C7QJdCGDYfNSJVVfYexvwZBrmJ1mLxVTZzWECRDlAAiEAukJ3WvB1VIp0bWFEySOgJVN4x7Ej0AZxZFEhuaSnioY="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/bplist-parser@0.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":71720,"size":11129,"noattachment":false,"key":"/bplist-parser/-/bplist-parser-0.5.0.tgz"},"main":"./dist/index.cjs","name":"bplist-parser","type":"module","types":"./dist/index.d.ts","author":{"name":"Joe Ferner","email":"joe.ferner@nearinfinity.com"},"module":"./dist/index.mjs","engines":{"node":">=20.19.0"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./package.json":"./package.json"},"gitHead":"3174d14349a33f845518349c6283b6c4ec80b743","license":"MIT","scripts":{"lint":"eslint .","test":"vitest run","build":"node build.js","smoke":"npm run build && node smoke.cjs","typecheck":"tsc --noEmit","prepublishOnly":"npm run typecheck && npm run build"},"version":"0.5.0","_npmUser":{"name":"joeferner","email":"joe@fernsroth.com"},"homepage":"https://github.com/joeferner/node-bplist-parser","keywords":["bplist","plist","parser"],"repository":{"url":"git+https://github.com/joeferner/node-bplist-parser.git","type":"git"},"_npmVersion":"10.9.8","description":"Binary plist parser.","directories":{},"maintainers":[{"name":"joeferner","email":"joe@fernsroth.com"}],"_nodeVersion":"22.23.2","contributors":[{"name":"Brett Zamir"}],"_hasShrinkwrap":false,"devDependencies":{"eslint":"10.10.x","vitest":"5.0.x","esbuild":"0.28.x","globals":"17.12.x","@eslint/js":"10.0.x","typescript":"6.0.x","@types/node":"26.4.x","typescript-eslint":"8.69.x"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bplist-parser_0.5.0_1788638474516_0.019260264197444865"},"readme":"# bplist-parser\n\n[![CI](https://github.com/joeferner/node-bplist-parser/actions/workflows/ci.yml/badge.svg)](https://github.com/joeferner/node-bplist-parser/actions/workflows/ci.yml)\n\nBinary Mac OS X Plist (property list) parser.\n\n## Installation\n\n```bash\n$ npm install bplist-parser\n```\n\n## Quick Examples\n\nThis package ships both ES module and CommonJS builds, so either import style works.\n\n```javascript\n// ESM\nimport { parseFile } from 'bplist-parser';\n\nconst [obj] = await parseFile('myPlist.bplist');\nconsole.log(JSON.stringify(obj));\n```\n\n```javascript\n// CommonJS\nconst bplist = require('bplist-parser');\n\n(async () => {\n  const [obj] = await bplist.parseFile('myPlist.bplist');\n  console.log(JSON.stringify(obj));\n})();\n```\n\n`parseFileSync` and `parseBuffer` are also exported, and both return an array of\nthe plist's root objects.\n\n## Limits\n\nThe parser refuses plists that would allocate more than `maxObjectSize` bytes or\ncontain more than `maxObjectCount` objects. Both are readable as exports and\nadjusted through setters:\n\n```javascript\nimport { setMaxObjectSize, setMaxObjectCount } from 'bplist-parser';\n\nsetMaxObjectSize(200 * 1000 * 1000);\nsetMaxObjectCount(65536);\n```\n\n> **Note:** before 0.4.0 these were assignable (`bplist.maxObjectSize = n`).\n> Exported bindings are read-only in both module systems now, so assignment must\n> be replaced with the setters above.\n\n## Requirements\n\nNode.js 20.19 or newer.\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2012 Near Infinity Corporation\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","publish_time":1788638474603,"_cnpm_publish_time":1788638474603,"dist-tags":{"latest":"0.5.0"}}