{"_id":"@adtonos/mstl-node","_rev":"1-49b06a7c4ca6752d0f5f4f44e577b466","name":"@adtonos/mstl-node","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@adtonos/mstl-node","version":"1.0.0","author":{"url":"adtonos.com","name":"AdTonos"},"license":"UNLICENSED","_id":"@adtonos/mstl-node@1.0.0","maintainers":[{"name":"adtonos","email":"support@adtonos.com"}],"dist":{"shasum":"d8f15e18863fd242115b98e0bb604de3ebb8659b","tarball":"https://registry.npmjs.org/@adtonos/mstl-node/-/mstl-node-1.0.0.tgz","fileCount":14,"integrity":"sha512-iMEZlczVLC9nqhRI06dphZJY7alnc2glqsGD3n47fmjYt6VtRPmeUAXprYSCJBu47c4E3noQVNLtNeAbTvI5bA==","signatures":[{"sig":"MEQCIG5cYBrbH7zmPNPMWlsU+41dnqNdLyhyMNyJ0E8gb5gWAiBi8GTNplguCgrbkrpFGaFMNdp8dAjNgc2Z17hzcCSMnA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":52450},"main":"dist/index.js","types":"dist/index.d.ts","$schema":"https://json.schemastore.org/package","engines":{"node":">=20.0.0"},"gitHead":"41e8279bb5f0bdf630ddcaf31fad38d46a2e2b62","gypfile":true,"scripts":{"test":"mocha --exit --require ts-node/register test/**/*.ts test/*.ts","build":"npx node-gyp configure build && tsc","install":"node-gyp rebuild","prepare":"husky || true","postinstall":"npx node-gyp configure build"},"_npmUser":{"name":"adtonos","email":"support@adtonos.com"},"_npmVersion":"10.8.2","description":"Javascript bindings of MSTL based on STL implementation from ankane/stl-cpp","directories":{},"lint-staged":{"*.{hpp,h,cpp}":"clang-format -i","*.{js,ts,json}":"prettier --write"},"_nodeVersion":"22.7.0","dependencies":{"bindings":"~1.5.0","node-addon-api":"^8.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.1.7","mocha":"^11.1.0","ts-node":"^10.9.2","node-gyp":"^11.1.0","prettier":"^3.5.0","typescript":"^5.7.3","@types/node":"^22.13.1","lint-staged":"^15.4.3","@types/mocha":"^10.0.10"},"_npmOperationalInternal":{"tmp":"tmp/mstl-node_1.0.0_1739440576573_0.3086286216766141","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"$schema":"https://json.schemastore.org/package","name":"@adtonos/mstl-node","version":"1.0.1","description":"Javascript bindings of MSTL based on STL implementation from ankane/stl-cpp","main":"dist/index.js","types":"dist/index.d.ts","repository":{"url":"git+https://github.com/adtonos/mstl-node.git"},"publishConfig":{"access":"public"},"scripts":{"postinstall":"npx node-gyp configure build","build":"npx node-gyp configure build && tsc","test":"mocha --exit --require ts-node/register test/**/*.ts test/*.ts","prepare":"husky || true","install":"node-gyp rebuild"},"author":{"name":"AdTonos","url":"adtonos.com"},"license":"(MIT OR UNLICENSED)","devDependencies":{"@types/mocha":"^10.0.10","@types/node":"^22.13.1","husky":"^9.1.7","lint-staged":"^15.4.3","mocha":"^11.1.0","node-gyp":"^11.1.0","prettier":"^3.5.0","ts-node":"^10.9.2","typescript":"^5.7.3"},"dependencies":{"bindings":"~1.5.0","node-addon-api":"^8.1.0"},"engines":{"node":">=20.0.0"},"lint-staged":{"*.{js,ts,json}":"prettier --write","*.{hpp,h,cpp}":"clang-format -i"},"volta":{"node":"22.7.0"},"_id":"@adtonos/mstl-node@1.0.1","gypfile":true,"gitHead":"3aec8c0095761db54ac60b328f24f2fc460202bf","bugs":{"url":"https://github.com/adtonos/mstl-node/issues"},"homepage":"https://github.com/adtonos/mstl-node#readme","_nodeVersion":"22.7.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-TXxBMlajdVnstspDPqvn47Kp0Uk0ADPAO4KfT3/b1DKq4+4bfOlXWLatmGI4gC7DWumxDEIX1Yk93PvVQcDZsw==","shasum":"e4ad7799499a2a12b295c45293849b246d6e2916","tarball":"https://registry.npmjs.org/@adtonos/mstl-node/-/mstl-node-1.0.1.tgz","fileCount":10,"unpackedSize":40317,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQChmnvDAMHaufLwj1SWWiVslycn4RN/vN16ScDcVNrEKQIgXOpkdbB/I7m4akBwwnIQj0oLkP+5d+NO+f1Mv0WPTi8="}]},"_npmUser":{"name":"adtonos","email":"support@adtonos.com"},"directories":{},"maintainers":[{"name":"adtonos","email":"support@adtonos.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mstl-node_1.0.1_1739441241971_0.03893824768536014"},"_hasShrinkwrap":false}},"time":{"created":"2025-02-13T09:56:16.176Z","modified":"2025-02-13T10:07:22.388Z","1.0.0":"2025-02-13T09:56:16.795Z","1.0.1":"2025-02-13T10:07:22.214Z"},"author":{"name":"AdTonos","url":"adtonos.com"},"license":"(MIT OR UNLICENSED)","description":"Javascript bindings of MSTL based on STL implementation from ankane/stl-cpp","maintainers":[{"name":"adtonos","email":"support@adtonos.com"}],"readme":"# mstl-node\nJavascript bindings of MSTL based on STL implementation from [ankane/stl-cpp](https://github.com/ankane/stl-cpp)\n\n## Requirements\n* C++ compiler compatible with `node-addon-api`\n* NodeV20 or higher\n* `npm`\n* `clang-format` (for pre-commit hook)\n\n## How to use\nInstall the package:\n```sh\nnpm install --save @adtonos/mstl-node\n```\nUse it in your code:\n```ts\nimport { fit } from '@adtonos/mstl-node';\n\n// ...\nconst series = new Float32Array([\n  5.0, 9.0, 2.0, 9.0, 0.0, 6.0, 3.0, 8.0, 5.0, 8.0, 7.0, 8.0, 8.0, 0.0, 2.0,\n  5.0, 0.0, 5.0, 6.0, 7.0, 3.0, 6.0, 1.0, 4.0, 4.0, 4.0, 3.0, 7.0, 5.0, 8.0,\n]);\nconst results = fit(series, [7, 10]);\nresults.seasonal\n```\n\n## Contributing\nAny contributions are welcome, please submit a PR with ready suggestion from your fork and/or create an issue and we will be happy to discuss.\n\n## How to compile/run\n```sh\ngit clone git@github.com:adtonos/mstl-node.git\nnpm install\nnpm test\n```\n\n## Tips\n\n### Generating compile_commands.json\nMany IDEs use `compile_commands.json` for LSP setup, one easy way to generate them is to use [bear](https://github.com/rizsotto/Bear)\n```sh\nbear -- npx node-gyp rebuild --verbose\n```\n","readmeFilename":"README.md","homepage":"https://github.com/adtonos/mstl-node#readme","repository":{"url":"git+https://github.com/adtonos/mstl-node.git"},"bugs":{"url":"https://github.com/adtonos/mstl-node/issues"}}