{"_id":"@ahouse/json5-utilities","_rev":"2-1a82ace4c329a54221b32dd8ff21d388","name":"@ahouse/json5-utilities","dist-tags":{"latest":"0.4.1"},"versions":{"0.4.0":{"name":"@ahouse/json5-utilities","version":"0.4.0","description":"Utility functions for the JSON5 package when running on Node JS.","author":{"name":"Alex House"},"license":"MIT","main":"dist/exports.js","types":"dist/exports.d.ts","scripts":{"prepare":"tsc","watch":"tsc -w","test":"mocha dist/tests","pretest":"rimraf dist && npm ci"},"dependencies":{"json5":"^2.2.0"},"devDependencies":{"@types/mocha":"^9.0.0","@types/node":"^16.10.3","mocha":"^9.1.2","rimraf":"^3.0.2","typescript":"^4.4.3"},"directories":{"test":"tests"},"repository":{"type":"git","url":"git+https://github.com/ahouse101/json5-utilities.git"},"keywords":["JSON5","utility","utilities","files"],"bugs":{"url":"https://github.com/ahouse101/json5-utilities/issues"},"homepage":"https://github.com/ahouse101/json5-utilities#readme","gitHead":"153786853f1208cef99bba503682805bc110a9a6","_id":"@ahouse/json5-utilities@0.4.0","_nodeVersion":"16.4.0","_npmVersion":"7.18.1","dist":{"integrity":"sha512-D+yGJkuBD01U9XL6hcHFlsYGJJdze4ilozF1YBzotnr4M+ORVZyKExA3spxV7WZL7sGobXK2gqiWXOQiHezWEA==","shasum":"05c55bbe15ae024bbd2c812bb28c718eae31cb50","tarball":"https://registry.npmjs.org/@ahouse/json5-utilities/-/json5-utilities-0.4.0.tgz","fileCount":8,"unpackedSize":5127,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhwNWCCRA9TVsSAnZWagAAw9cP/A2PogrZQfUyfS/dAobV\nSXCe3uoXkYrNgix0AeNdMSfIBHSi89nSv+dOHqGTTPnmNbl4LoprWeDMXu6Z\n9U+UuTGBYFV2G9lOquDy+WOJTFK3hPl3Rkz6fkr2WI3Ju0hU0HS4k4wxNmY/\nBcfLPZl23CNRSHraXeBt2zOKI0ri4ylfxV28mkP2Gnu+khloNkYlO9/iNO3N\nFahpzt70ug1eCrs9O35SELlO1mbgeTsxGRFDSLEnj73Z3J/7vmyYG/8m5uQi\nHjz4dOaEa9mjBbH2n5luPas26ulIh61cx0nJ3yaRShhUp3euIwHzMSTKaRlO\nqEZamhG45D+6gC3CAA8UkSnrBZuTFM96aV+nyEt0QY4tIOHxbemRhBn+nNlQ\ns3t6R9Vnfx9cPt9z/hhT0sxgGip0A5I0egN+sVfo4WyMlTSdZesKytFDS6Lo\nB0P22ct0R7lR0m4/qBZlWryAxr1fXe3LglMP4zIH+0YuLHDZm8D9+Q9ZynH8\nTCYuzDTr4PdPpKKksu0CB4N2/IIqPXjPrAD4wIUpny7lXc25QtPxu0Ntuu1l\nM4lSg+Ikp+gY8KiLg9RAlbHfvUwube63qzcUaa4S4iW0ViQOPyJhBZ7BJSsI\nbQfb1AlsA2HLR/SFHe4F80CrSCfRrDNx1/nBszj84ZP8LKJKkgjKJG45WH8w\nthLO\r\n=Wl8t\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDG1QuvLcUDUexIvtC6//RyDSnrGdkYClmwzmtt7aNyAIhANWL4iLzVpUV+GggTUBAS1KVA8rKdGZKFpu8kF8AOhRA"}]},"_npmUser":{"name":"ahouse101","email":"ahouse101@gmail.com"},"maintainers":[{"name":"ahouse101","email":"ahouse101@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json5-utilities_0.4.0_1640027522701_0.01941259057152478"},"_hasShrinkwrap":false},"0.4.1":{"name":"@ahouse/json5-utilities","version":"0.4.1","description":"Utility functions for the JSON5 package when running on Node JS.","author":{"name":"Alex House"},"license":"MIT","main":"dist/exports.js","types":"dist/exports.d.ts","scripts":{"prepare":"tsc","watch":"tsc -w","test":"mocha dist/tests","pretest":"rimraf dist && npm ci"},"dependencies":{"json5":"^2.2.0"},"devDependencies":{"@types/mocha":"^9.0.0","@types/node":"^16.10.3","mocha":"^9.1.2","rimraf":"^3.0.2","typescript":"^4.4.3"},"directories":{"test":"tests"},"repository":{"type":"git","url":"git+https://github.com/ahouse101/json5-utilities.git"},"keywords":["JSON5","utility","utilities","files"],"bugs":{"url":"https://github.com/ahouse101/json5-utilities/issues"},"homepage":"https://github.com/ahouse101/json5-utilities#readme","gitHead":"fd180ea0aa5fbddbf9f88b069caf7b566602b3c0","_id":"@ahouse/json5-utilities@0.4.1","_nodeVersion":"16.4.0","_npmVersion":"7.18.1","dist":{"integrity":"sha512-Lz3bSaL2GhpmsrIshr8Kl9y6wn6RdRFZIKPOPPKThJ/h1kg4agm/mDZGaWookLW8ie7nDVh425RWaFYgKcJF4w==","shasum":"6252215f4ded9497c8f018e652eacb27efb621dd","tarball":"https://registry.npmjs.org/@ahouse/json5-utilities/-/json5-utilities-0.4.1.tgz","fileCount":8,"unpackedSize":5127,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhwNYtCRA9TVsSAnZWagAAlGQQAJ1XHSQv3V4VbycIp/Nk\n5HtcPfzsT8ZOkTF8EhF7K6C/fe+R2Vk5KLKVSTkx7wwjL9HbKULCxJfDa8Cl\na3qJt0VIMdBlIS6qOMxfVXv0rH1aIJ76VShA3S+5QW67vis21U4L4xIfGnOE\nVxJXBms61XpXpqmmrzWbS8boStJ4qbGleoEnwEo7JVjzEMyTMeRtaRSY66GJ\ncKcPbBGLmLlsD/NoN0W7WFd5AmYGjgbAht3fTnLtpPFSU1ORUwqEdM8vRExx\nI1JKwRWejlkdHZiQ3VdnoXLwoaoaYC8F6YXZ/YDyxzxyB8yhciiNtbQMNpI+\ngKRRxeYkLkA3SN6B2fUbEkv0YCyC9yVd+WXSJElP05MN+eyBJJZJyGobXoD7\n+m1ezHijlSdIsW7uTed+UXhnq7NiTOaBv4KQU7H4mo8KNYrocmGe9s2iB0K8\nVwzq5oTMjNYWdzFphSPXspwjYL2layhA21zpa3WtBJdNDTNjxPgPk0acAqwK\n+++rmg0m2CNLvATnRb56N2+wor7qhZfiXomRNLQ3IngB93kR8hMrpP6xufeR\nZRskLqN4WbihKesLeHK8cAKpKAt7QKD7YVNpsesqartmwXImXHH39dG2hsQB\nJo0qRulaKLFYIdYece5yXMVTWHhhmvGMuit+8r2ff503V3gyVD60Pn2snXO1\nrm2g\r\n=wGki\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB/ztSm1xHm+Q933sxECqox5CLMAU9HnNPlgPdTnBhvgAiEAgGeiwfXJSt3A7m4q8vmNKwL1VhR72tf4THrYA9R8uTQ="}]},"_npmUser":{"name":"ahouse101","email":"ahouse101@gmail.com"},"maintainers":[{"name":"ahouse101","email":"ahouse101@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json5-utilities_0.4.1_1640027692897_0.40446498211084814"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-20T19:12:02.305Z","0.4.0":"2021-12-20T19:12:02.846Z","modified":"2022-04-04T12:13:47.507Z","0.4.1":"2021-12-20T19:14:53.099Z"},"maintainers":[{"name":"ahouse101","email":"ahouse101@gmail.com"}],"description":"Utility functions for the JSON5 package when running on Node JS.","homepage":"https://github.com/ahouse101/json5-utilities#readme","keywords":["JSON5","utility","utilities","files"],"repository":{"type":"git","url":"git+https://github.com/ahouse101/json5-utilities.git"},"author":{"name":"Alex House"},"bugs":{"url":"https://github.com/ahouse101/json5-utilities/issues"},"license":"MIT","readme":"# @ahouse/json5-utilities\r\nUtility functions for the JSON5 package, when running on Node JS.\r\nSeparated from @ahouse/object-utilities in order to remove dependencies from that project.\r\n\r\n## Installation\r\nNote: This is a JavaScript library, it needs to be added as a dependency to\r\na Node JS project in order to be useful.\r\n```\r\nnpm install @ahouse/json5-utilites\r\n```\r\n\r\n## Usage\r\n### `readFileAsJSON5`\r\nRead a file (asynchronously) and parse it as JSON5.\r\n```\r\nimport { readFileAsJSON5 } from '@ahouse/json5-utilities';\r\nimport path from 'path';\r\n\r\n// Parse 'file.json5' from within the source directory:\r\nreadFileAsJSON5(path.join(__dirname, 'file.json5')).then(parsedObject => {\r\n\t// Use the parsed data here...\r\n});\r\n\r\n// Or, using await (must be within an async function):\r\nasync function myFunc() {\r\n  const parsedObject = await readFileAsJSON5(path.join(__dirname, 'file.json5'));\r\n\t// Use the parsed data here...\r\n}\r\n```\r\n\r\n## Contributing\r\nSee `contributing.md`.","readmeFilename":"README.md"}