{"_id":"@axel92/time-series","_rev":"7-7d1b98fb202cffabab6e190a0804a441","name":"@axel92/time-series","description":"A time series module","dist-tags":{"latest":"0.4.0"},"versions":{"0.0.1":{"name":"@axel92/time-series","version":"0.0.1","description":"A time series module","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Axel92Dev/time-series.git"},"keywords":["timeseries","assets","datapoint","iot"],"author":"","license":"UNLICENSED","bugs":{"url":"https://github.com/Axel92Dev/time-series/issues"},"homepage":"https://github.com/Axel92Dev/time-series#readme","devDependencies":{"mocha":"^4.0.1"},"dependencies":{"mongodb":"^2.2.33"},"gitHead":"927669863e71cc09c4ab17ae95d89ee26b3213f6","_id":"@axel92/time-series@0.0.1","_shasum":"0c40daf68ed175d69b4dbe80bffcb7a0b0bf8437","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"axel92","email":"alessandro.romano1992@gmail.com"},"dist":{"shasum":"0c40daf68ed175d69b4dbe80bffcb7a0b0bf8437","tarball":"https://registry.npmjs.org/@axel92/time-series/-/time-series-0.0.1.tgz","integrity":"sha512-DcxNg+jeIqxM0IZ+uBpTU0o3reNx0Ex3JlxSGk5k1JO7HdoqUcrEg5DT6RmQftzEOB9PTijpbLYCOzaz+A+oVA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFPX41BVXrp5ZgGIvxwUC4YGGLLvdeTWOtdKDejwfMsAIhAIe02UwYvf1u8FFYFAcogt8+bu1odUWAaiNvmTOh1YFH"}]},"maintainers":[{"name":"axel92","email":"alessandro.romano1992@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/time-series-0.0.1.tgz_1512384395856_0.6730056442320347"}},"0.1.0":{"name":"@axel92/time-series","version":"0.1.0","description":"A time series module","main":"index.js","scripts":{"test":"mocha test/index.spec.js"},"repository":{"type":"git","db":"git+https://github.com/Axel92Dev/time-series.git"},"keywords":["timeseries","assets","datapoint","iot"],"author":"","license":"UNLICENSED","homepage":"https://github.com/Axel92Dev/time-series#readme","devDependencies":{"chai":"^4.1.2","mocha":"^4.0.1"},"dependencies":{"mongodb":"^2.2.33"},"gitHead":"a44472d0475b23c648b7f5171c6761c507bf1fc1","_id":"@axel92/time-series@0.1.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"axel92","email":"alessandro.romano1992@gmail.com"},"dist":{"integrity":"sha512-Wbb3eNI/y74rpISaYArFYfsuDdNqLe5ab9adSYLqlttN1VF5FpdgYFHFbVhHt6berlFa2IpSJoVqx9/aUE1lRA==","shasum":"f59f297aa220c0a08861eb27abe7c5f74cc21579","tarball":"https://registry.npmjs.org/@axel92/time-series/-/time-series-0.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICrVZO64k1r+laM4iqvrXuqo4RJBrUzzvxWLEmLTI8tuAiB75c+PP+S19c4I3CUt3OTSV9f9Lg2uFcumGcuDyVuo+A=="}]},"maintainers":[{"name":"axel92","email":"alessandro.romano1992@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/time-series-0.1.0.tgz_1512405663470_0.0038816407322883606"}},"0.2.0":{"name":"@axel92/time-series","version":"0.2.0","description":"A time series module","main":"src/index.js","scripts":{"test":"mocha test/index.spec.js"},"repository":{"type":"git","db":"git+https://github.com/Axel92Dev/time-series.git"},"keywords":["timeseries","assets","datapoint","iot"],"author":"","license":"UNLICENSED","homepage":"https://github.com/Axel92Dev/time-series#readme","devDependencies":{"chai":"^4.1.2","mocha":"^4.0.1"},"dependencies":{"mongodb":"^2.2.33"},"gitHead":"083084bfaa29c6defc9fdfe9069da60c4867ffbc","_id":"@axel92/time-series@0.2.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"axel92","email":"alessandro.romano1992@gmail.com"},"dist":{"integrity":"sha512-wBJv+nEH3E7nfVUQ9BPcSqMP8JwOjDAW6GAJnwDiUfJVhrVkDojXu0WwQ5n9HKPA6BSYKZ54vvemUHLmhRc7pg==","shasum":"d21ab0e61f0d13a639da0f0cce1a6fe82d586765","tarball":"https://registry.npmjs.org/@axel92/time-series/-/time-series-0.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKGfxsumvGwk+RGkRP4p6FBvu2l+Jyl2YcNimoylfijwIgcG3CisR0WioIrYAt7B+LfzQJ3p72QBckMg5htVipJos="}]},"maintainers":[{"name":"axel92","email":"alessandro.romano1992@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/time-series-0.2.0.tgz_1512469477587_0.17388122412376106"}},"0.3.0":{"name":"@axel92/time-series","version":"0.3.0","description":"A time series module","main":"src/index.js","scripts":{"test":"mocha test/index.spec.js"},"repository":{"type":"git","db":"git+https://github.com/Axel92Dev/time-series.git"},"keywords":["timeseries","assets","datapoint","iot"],"author":"","license":"UNLICENSED","homepage":"https://github.com/Axel92Dev/time-series#readme","devDependencies":{"chai":"^4.1.2","mocha":"^4.0.1","standard":"^10.0.3"},"dependencies":{"docker-namesgenerator":"0.0.1","mongodb":"^2.2.33","pump":"^2.0.0"},"gitHead":"f3f5b8f7373ff3afa656ad9936dd6cb01499ed3b","_id":"@axel92/time-series@0.3.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"axel92","email":"alessandro.romano1992@gmail.com"},"dist":{"integrity":"sha512-YdH8tz/C6uykjqGdQ9Ukgdxv1dE2ok8fQQOna2NHXAQS5sBKOliRzi06AJXGx8EJSC/G7fOn1lmdi/s6hzVzJg==","shasum":"68c68a8bbec5c3d0c194da525df565b55aac566d","tarball":"https://registry.npmjs.org/@axel92/time-series/-/time-series-0.3.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDo77+L7V7jKmuo6unscc3K5oJBowITAl3RVNtUP+CWsAIhANYmlDk2lpKCMUMhIi9qTS68iFAM6kZ8gtp4v05JwD4c"}]},"maintainers":[{"name":"axel92","email":"alessandro.romano1992@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/time-series-0.3.0.tgz_1512486237190_0.5854775684420019"}},"0.4.0":{"name":"@axel92/time-series","version":"0.4.0","description":"A time series module","main":"src/index.js","scripts":{"test":"mocha test/index.spec.js"},"repository":{"type":"git","db":"git+https://github.com/Axel92Dev/time-series.git"},"keywords":["timeseries","assets","datapoint","iot"],"author":"","license":"UNLICENSED","homepage":"https://github.com/Axel92Dev/time-series#readme","devDependencies":{"chai":"^4.1.2","mocha":"^4.0.1","standard":"^10.0.3"},"dependencies":{"docker-namesgenerator":"0.0.1","mongodb":"^2.2.33","pump":"^2.0.0"},"gitHead":"f6688b7a3db74d5c7eaccb2f46590b8100952de2","_id":"@axel92/time-series@0.4.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"axel92","email":"alessandro.romano1992@gmail.com"},"dist":{"integrity":"sha512-tqMkywJgoVnQ0wgmbShWzjDm/LHEOeltPtriZXoF1ycoSCOKYJ3UKq1cxsZdrZCNknd6Ezdi6pzK+yDj51yEjw==","shasum":"95002ec4f6d993debe456e7179b6d0a856a28e06","tarball":"https://registry.npmjs.org/@axel92/time-series/-/time-series-0.4.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF+oX1XpG0EZZdt2LtcOX6ri/Viwt1vzNK+RptzbAxHDAiB+/rJl9yzGuzUSycQmjYdyO+YCed+pqXsEJsYZPXO0IA=="}]},"maintainers":[{"name":"axel92","email":"alessandro.romano1992@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/time-series-0.4.0.tgz_1512490383508_0.8729515688028187"}}},"readme":"# time-series\nA TimeSeries module to track time data about assets.\n\nIt requires an url of a MongoDB connection.\n\nThe module exposes 2 functions:\n* one for adding new datapoints\n* one for fetching data from the datapoints\n\n# How to use\n```javascript\nconst createTimeSeries = require('@axel92/time-series');\nconst timeSeries = createTimeSeries('mongodb://localhost:27017/timeseries-test');\nconst data = { value: 42 };\nconst instant = new Date().getTime();\n\ntimeSeries.addDataPoint(data, instant).then((id) => {\n  console.log('Doc created with id: ', id);\n});\n\nconst { data, time } = fetchDataPoint(id);\nconsole.log('Data: ', data, ' at ', time);\n```\n","maintainers":[{"name":"axel92","email":"alessandro.romano1992@gmail.com"}],"time":{"modified":"2022-06-12T14:55:08.772Z","created":"2017-12-04T10:46:35.975Z","0.0.1":"2017-12-04T10:46:35.975Z","0.1.0":"2017-12-04T16:41:04.359Z","0.2.0":"2017-12-05T10:24:38.475Z","0.3.0":"2017-12-05T15:03:58.139Z","0.4.0":"2017-12-05T16:13:04.460Z"},"homepage":"https://github.com/Axel92Dev/time-series#readme","keywords":["timeseries","assets","datapoint","iot"],"repository":{"type":"git","db":"git+https://github.com/Axel92Dev/time-series.git"},"license":"UNLICENSED","readmeFilename":"README.md"}