{"_id":"@benthaminstruments/ben-to-json","_rev":"2-6070ed47af54a907acde39378bb1eba5","name":"@benthaminstruments/ben-to-json","dist-tags":{"latest":"1.0.9"},"versions":{"1.0.8":{"name":"@benthaminstruments/ben-to-json","version":"1.0.8","description":"Convert Bentham .ben binary files to JSON","license":"UNLICENSED","repository":{"type":"git","url":"git+https://github.com/BenthamInstruments/ben-to-json.git"},"author":{"name":"Bentham Instruments"},"main":"index.js","typings":"index.d.ts","scripts":{"fmt":"prettier --write **/*.ts* **/*.js **/*.json*","test":"cross-env NODE_ICU_DATA=./node_modules/full-icu jest"},"dependencies":{"cfb":"^1.1.3"},"devDependencies":{"chai":"^4.2.0","cross-env":"^7.0.2","deep-map":"^2.0.0","es6-weak-map":"^2.0.3","full-icu":"^1.3.1","jest":"^29.2.2","lodash":"^4.17.21","prettier":"^2.0.4"},"engines":{"node":">=6.0.0"},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|js)$","moduleFileExtensions":["ts","js"],"testEnvironment":"node","verbose":true},"gitHead":"6b1f2225a366e9052197e3be7341f69f104c941c","bugs":{"url":"https://github.com/BenthamInstruments/ben-to-json/issues"},"homepage":"https://github.com/BenthamInstruments/ben-to-json#readme","_id":"@benthaminstruments/ben-to-json@1.0.8","_nodeVersion":"16.17.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-D0AF1KXUJ1zdIDT1sN7uy/6Ym3PiQnc3PFwLSrsmQerea5XgJHecbp6jOdrenaWtBcOJMjt9RzMtfQ7hXnO89w==","shasum":"9ad2efdc81227536724a04e527b03acac289b687","tarball":"https://registry.npmjs.org/@benthaminstruments/ben-to-json/-/ben-to-json-1.0.8.tgz","fileCount":17,"unpackedSize":982955,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGOAHHiclG9Qi3HtL4r8Ih7TfYPq5WhK2MDGbt+QlywQAiEAxWrVAJoXvtj8loukpXXdYKzUNArqvRFQRxx9wClgTOg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjY+SBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpilA/+MVPJIFmKu15KifrwcCnlJzpeB4lia+9dkpWwDhqCXPb5JFru\r\neEpi+TK2ECvPRqhEwbtQ5hjXvqmblaN+FH7/1nbiZLKGCcujYcIIu8uR7qDC\r\nimX0z1Zf85pzpXXSoayQklwfjYbSYtz4CONQBHrRnhNuwxVmKM16YO2630d3\r\nUpByzq+WIxHK/68N/Ej1XSr8Pa6GppWMwE8t0QPd+9G/mqqL71xa7s0vn+r3\r\nGIvVb068MugRg/DTbBQYBsTufJQXct2vOZewnJnXar3Qs3AN2W42hdsZZfWm\r\nnpciecUNOgGUKlQH6eHnTGZB9pCxZvt25uoWmcrFB08Q1BTqaWGWWugZXjkt\r\n3h8tvDRyjccsTFpQ7mNwp5J1ZXWv6IDmAZSb+sg0c/t3+rPg1Go6fbNZ5ea4\r\nPFVC/nCwlSL+HooUx0iaOZvwekl/tOONcv4ev7N42FSX05QgOmHABDYVEHlL\r\nW4fFa4seaZ/IzNA525mc/t8Vx3GWelal6OJkE0cJGFrFjrke54ZAHnnCFN+s\r\nMiklAnLUjmN1hffTKz30cgRViPYpfPnkuYB+rlJpcGijTXlXuKO96kNhb4an\r\n2fsGcU7BeKYTxV3hnI6bjqStK015ajbNxelxGVkXk1/BlHCKkiH4Oh2kMGM9\r\n1jVLlVVJrjmYAjww5W501uG9B2SKt3t+geA=\r\n=plZK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hammonda","email":"david.hammond@bentham.co.uk"},"directories":{},"maintainers":[{"name":"hammonda","email":"david.hammond@bentham.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ben-to-json_1.0.8_1667490945135_0.7762847578980578"},"_hasShrinkwrap":false},"1.0.9":{"name":"@benthaminstruments/ben-to-json","version":"1.0.9","description":"Convert Bentham .ben binary files to JSON","license":"UNLICENSED","repository":{"type":"git","url":"git+https://github.com/BenthamInstruments/ben-to-json.git"},"author":{"name":"Bentham Instruments"},"main":"index.js","typings":"index.d.ts","scripts":{"fmt":"prettier --write **/*.ts* **/*.js **/*.json*","test":"cross-env NODE_ICU_DATA=./node_modules/full-icu jest"},"dependencies":{"cfb":"^1.2.2"},"devDependencies":{"chai":"^4.3.7","cross-env":"^7.0.3","deep-map":"^2.0.0","es6-weak-map":"^2.0.3","full-icu":"^1.5.0","jest":"^28.1.3","lodash":"^4.17.21","prettier":"^3.0.0"},"engines":{"node":">=6.0.0"},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|js)$","moduleFileExtensions":["ts","js"],"testEnvironment":"node","verbose":true},"gitHead":"57464581cc833f29eedd08a31373b34dcea5b9bd","bugs":{"url":"https://github.com/BenthamInstruments/ben-to-json/issues"},"homepage":"https://github.com/BenthamInstruments/ben-to-json#readme","_id":"@benthaminstruments/ben-to-json@1.0.9","_nodeVersion":"18.17.0","_npmVersion":"9.6.7","dist":{"integrity":"sha512-lGFgYJCM6IL1tlpsnF1WKoifqkPavgVIU5uvvIEnDhKdMbr+kglL6m3TBpI4xeXp37ppXdiejt+2vpfojE2vxw==","shasum":"100654b5bbc8155d1ca660ce81c920c1352efb8c","tarball":"https://registry.npmjs.org/@benthaminstruments/ben-to-json/-/ben-to-json-1.0.9.tgz","fileCount":19,"unpackedSize":984441,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgonbBWKGxM2GaMQiSovc3EDQt2dejPdCR3jiS0b1rowIgFssJpTE4cPtv17oER5mcdEBTipWx+ppTgzG9GydKIps="}]},"_npmUser":{"name":"darwin-innovation","email":"richard@darwin-innovation.com"},"directories":{},"maintainers":[{"name":"darwin-innovation","email":"richard@darwin-innovation.com"},{"name":"hammonda","email":"david.hammond@bentham.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ben-to-json_1.0.9_1691147784622_0.05482288247470035"},"_hasShrinkwrap":false}},"time":{"created":"2022-11-03T15:55:45.078Z","1.0.8":"2022-11-03T15:55:45.370Z","modified":"2023-08-04T11:16:25.177Z","1.0.9":"2023-08-04T11:16:24.936Z"},"maintainers":[{"name":"darwin-innovation","email":"richard@darwin-innovation.com"},{"name":"hammonda","email":"david.hammond@bentham.co.uk"}],"description":"Convert Bentham .ben binary files to JSON","homepage":"https://github.com/BenthamInstruments/ben-to-json#readme","repository":{"type":"git","url":"git+https://github.com/BenthamInstruments/ben-to-json.git"},"author":{"name":"Bentham Instruments"},"bugs":{"url":"https://github.com/BenthamInstruments/ben-to-json/issues"},"license":"UNLICENSED","readme":"## BenWin+ .ben binary file to JSON converter\n\n![Node CI](https://github.com/BenthamInstruments/ben-to-json/workflows/Node%20CI/badge.svg)\n![Publish package on release](https://github.com/BenthamInstruments/ben-to-json/workflows/Publish%20package%20on%20release/badge.svg)\n\n# ben-to-json\n\nRead spectrum files produced by [Bentham's BenWin+ Software](https://www.bentham.co.uk/products/components/software/benwin-spectral-acquisition-software-71/) in Javascript\n\n## Install\n\n- `npm install @bentham-instruments/ben-to-json`\n\n\n## Examples\n\n### Using require\n\n```javascript\nconst { parse } = require('@benthaminstruments/ben-to-json');\n\nconst fs = require('fs');\n\nconst ben_file_data = fs.readFileSync('spectra.ben');\nlet json = parse(ben_file_data);\n\nconsole.log(json);\n```\n\n### Using import\n\n```javascript\nimport { parse } from '@benthaminstruments/ben-to-json';\n\nimport {readFileSync} from 'fs';\n\nconst ben_file_data = readFileSync('spectra.ben');\nlet json = parse(ben_file_data);\n\nconsole.log(json);\n```\n\n## Full-ICU (Pre Node v13)\n\nIf you are using an old version of node, pre v13, then it needs to be run with \nin a special way as these older versions were not built with full international \nsupport by default.\n\nThis support can  be added by using the NODE_ICU_DATA to point to an installed version of the \n[full-icu]([Title](https://www.npmjs.com/package/full-icu))\npackage. e.g. `\"cross-env NODE_ICU_DATA=./node_modules/full-icu node script.js`\n","readmeFilename":"README.md"}