{"_id":"ammo","_rev":"305930","name":"ammo","description":"HTTP Range processing utilities","dist-tags":{"latest":"3.0.3","v2-legacy":"2.1.2"},"maintainers":[{"name":"devinivy","email":"devin@bigroomstudios.com"},{"name":"marsup","email":"marsup@gmail.com"},{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"nlf","email":""}],"time":{"modified":"2026-04-10T20:05:27.000Z","created":"2014-11-18T07:31:12.243Z","2.1.2":"2024-01-01T13:23:29.030Z","3.0.3":"2018-11-03T00:14:34.973Z","3.0.2":"2018-11-01T07:22:08.856Z","3.0.1":"2018-04-26T14:59:33.970Z","3.0.0":"2017-09-26T05:46:32.783Z","2.0.4":"2017-05-28T05:55:01.245Z","2.0.3":"2016-11-29T01:46:31.249Z","2.0.2":"2016-07-27T19:25:00.177Z","2.0.1":"2016-05-19T17:33:27.174Z","2.0.0":"2015-11-01T19:08:14.465Z","1.0.1":"2015-06-28T02:23:42.862Z","1.0.0":"2014-11-18T07:31:12.243Z"},"users":{},"repository":{"type":"git","url":"git://github.com/hapijs/ammo.git"},"versions":{"2.1.2":{"name":"ammo","description":"HTTP Range processing utilities","version":"2.1.2","repository":{"type":"git","url":"git://github.com/hapijs/ammo.git"},"engines":{"node":">=12.0.0"},"main":"lib/index.js","keywords":["http","range","utilities"],"dependencies":{"boom":"5.x.x","hoek":"4.x.x"},"devDependencies":{"code":"4.x.x","lab":"14.x.x","wreck":"12.x.x"},"scripts":{"test":"lab -a code -t 100 -L -l","test-cov-html":"lab -a code -r html -o coverage.html -l"},"license":"SEE LICENSE IN LICENSE.md","_id":"ammo@2.1.2","readmeFilename":"README.md","gitHead":"7071f8bca469f528f9b30ed4e032c30046f9f28e","bugs":{"url":"https://github.com/hapijs/ammo/issues"},"homepage":"https://github.com/hapijs/ammo#readme","_nodeVersion":"18.18.1","_npmVersion":"10.2.1","dist":{"shasum":"2916439880bebef8c9e87167469aa6a147a08a3d","size":2031,"noattachment":false,"key":"/ammo/-/ammo-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/ammo/download/ammo-2.1.2.tgz"},"_npmUser":{"name":"nargonath","email":"jonas.pauthier@gmail.com"},"directories":{},"maintainers":[{"name":"devinivy","email":"devin@bigroomstudios.com"},{"name":"marsup","email":"marsup@gmail.com"},{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"nlf","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ammo_2.1.2_1704115408880_0.11187071590097353"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-01-01T13:23:29.030Z","publish_time":1704115409030,"_source_registry_name":"default","deprecated":"This module has moved and is now available at @hapi/ammo. Please update your dependencies as this version is no longer maintained and may contain bugs and security issues.","_cnpm_publish_time":1704115409030},"3.0.3":{"name":"ammo","description":"HTTP Range processing utilities","version":"3.0.3","repository":{"type":"git","url":"git://github.com/hapijs/ammo.git"},"main":"lib/index.js","keywords":["http","range","utilities"],"dependencies":{"hoek":"6.x.x"},"devDependencies":{"code":"5.x.x","lab":"17.x.x","wreck":"14.x.x"},"scripts":{"test":"lab -a code -t 100 -L","test-cov-html":"lab -a code -r html -o coverage.html"},"license":"BSD-3-Clause","gitHead":"3c00297b0ac058ba251217838b8767014d682d81","bugs":{"url":"https://github.com/hapijs/ammo/issues"},"homepage":"https://github.com/hapijs/ammo#readme","_id":"ammo@3.0.3","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"hueniverse","email":"eran@hammer.io"},"dist":{"shasum":"502aafa9d8bfca264143e226e5f322716e746b0c","size":3225,"noattachment":false,"key":"/ammo/-/ammo-3.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/ammo/download/ammo-3.0.3.tgz"},"maintainers":[{"name":"devinivy","email":"devin@bigroomstudios.com"},{"name":"marsup","email":"marsup@gmail.com"},{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"nlf","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ammo_3.0.3_1541204074805_0.6833639600301007"},"_hasShrinkwrap":false,"publish_time":1541204074973,"_cnpm_publish_time":1541204074973,"deprecated":"This module has moved and is now available at @hapi/ammo. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues."},"3.0.2":{"name":"ammo","description":"HTTP Range processing utilities","version":"3.0.2","repository":{"type":"git","url":"git://github.com/hapijs/ammo.git"},"main":"lib/index.js","keywords":["http","range","utilities"],"engines":{"node":">=8.12.0"},"dependencies":{"hoek":"6.x.x"},"devDependencies":{"code":"5.x.x","lab":"17.x.x","wreck":"14.x.x"},"scripts":{"test":"lab -a code -t 100 -L","test-cov-html":"lab -a code -r html -o coverage.html"},"license":"BSD-3-Clause","gitHead":"297800221ef8124a6972118a01e22c9c93ae3a16","bugs":{"url":"https://github.com/hapijs/ammo/issues"},"homepage":"https://github.com/hapijs/ammo#readme","_id":"ammo@3.0.2","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"hueniverse","email":"eran@hammer.io"},"dist":{"shasum":"e4aa1b246f532ac1e55cb22ce4c02d1134fb71a8","size":3244,"noattachment":false,"key":"/ammo/-/ammo-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/ammo/download/ammo-3.0.2.tgz"},"maintainers":[{"name":"devinivy","email":"devin@bigroomstudios.com"},{"name":"marsup","email":"marsup@gmail.com"},{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"nlf","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ammo_3.0.2_1541056928695_0.7126853296087843"},"_hasShrinkwrap":false,"publish_time":1541056928856,"_cnpm_publish_time":1541056928856,"deprecated":"This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial)."},"3.0.1":{"name":"ammo","description":"HTTP Range processing utilities","version":"3.0.1","repository":{"type":"git","url":"git://github.com/hapijs/ammo.git"},"main":"lib/index.js","keywords":["http","range","utilities"],"engines":{"node":">=8.9.0"},"dependencies":{"hoek":"5.x.x"},"devDependencies":{"code":"5.x.x","lab":"15.x.x","wreck":"14.x.x"},"scripts":{"test":"lab -a code -t 100 -L","test-cov-html":"lab -a code -r html -o coverage.html"},"license":"BSD-3-Clause","gitHead":"410bf82be9ad28da3d6da76073f588d24f161060","bugs":{"url":"https://github.com/hapijs/ammo/issues"},"homepage":"https://github.com/hapijs/ammo#readme","_id":"ammo@3.0.1","_npmVersion":"5.6.0","_nodeVersion":"10.0.0","_npmUser":{"name":"kanongil","email":"gpdev@gpost.dk"},"dist":{"shasum":"c79ceeac36fb4e55085ea3fe0c2f42bfa5f7c914","size":3286,"noattachment":false,"key":"/ammo/-/ammo-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ammo/download/ammo-3.0.1.tgz"},"maintainers":[{"name":"devinivy","email":"devin@bigroomstudios.com"},{"name":"marsup","email":"marsup@gmail.com"},{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"nlf","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ammo_3.0.1_1524754773904_0.822522090446099"},"_hasShrinkwrap":false,"publish_time":1524754773970,"_cnpm_publish_time":1524754773970,"deprecated":"This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial)."},"3.0.0":{"name":"ammo","description":"HTTP Range processing utilities","version":"3.0.0","repository":{"type":"git","url":"git://github.com/hapijs/ammo.git"},"main":"lib/index.js","keywords":["http","range","utilities"],"engines":{"node":">=8.0.0"},"dependencies":{"boom":"6.x.x","hoek":"5.x.x"},"devDependencies":{"code":"5.x.x","lab":"14.x.x","wreck":"13.x.x"},"scripts":{"test":"lab -a code -t 100 -L","test-cov-html":"lab -a code -r html -o coverage.html"},"license":"BSD-3-Clause","gitHead":"0febd7bf54be2c168c4a12af66f866727a2b2927","bugs":{"url":"https://github.com/hapijs/ammo/issues"},"homepage":"https://github.com/hapijs/ammo#readme","_id":"ammo@3.0.0","_npmVersion":"5.4.2","_nodeVersion":"8.4.0","_npmUser":{"name":"hueniverse","email":"eran@hammer.io"},"dist":{"shasum":"30f322f70a0904eaee1788f4d26c5be1d72da181","size":3039,"noattachment":false,"key":"/ammo/-/ammo-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ammo/download/ammo-3.0.0.tgz"},"maintainers":[{"name":"devinivy","email":"devin@bigroomstudios.com"},{"name":"marsup","email":"marsup@gmail.com"},{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"nlf","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ammo-3.0.0.tgz_1506404792685_0.8863109319936484"},"directories":{},"publish_time":1506404792783,"_cnpm_publish_time":1506404792783,"_hasShrinkwrap":false,"deprecated":"This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial)."},"2.0.4":{"name":"ammo","description":"HTTP Range processing utilities","version":"2.0.4","repository":{"type":"git","url":"git://github.com/hapijs/ammo.git"},"main":"lib/index.js","keywords":["http","range","utilities"],"engines":{"node":">=4.0.0"},"dependencies":{"boom":"5.x.x","hoek":"4.x.x"},"devDependencies":{"code":"4.x.x","lab":"13.x.x","wreck":"12.x.x"},"scripts":{"test":"lab -a code -t 100 -L","test-cov-html":"lab -a code -r html -o coverage.html"},"license":"BSD-3-Clause","gitHead":"964248e139586cbeb61f4f21b76e1e0e877d10ab","bugs":{"url":"https://github.com/hapijs/ammo/issues"},"homepage":"https://github.com/hapijs/ammo#readme","_id":"ammo@2.0.4","_shasum":"bf80aab211698ea78f63ef5e7f113dd5d9e8917f","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"hueniverse","email":"eran@hammer.io"},"dist":{"shasum":"bf80aab211698ea78f63ef5e7f113dd5d9e8917f","size":3045,"noattachment":false,"key":"/ammo/-/ammo-2.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/ammo/download/ammo-2.0.4.tgz"},"maintainers":[{"name":"devinivy","email":"devin@bigroomstudios.com"},{"name":"marsup","email":"marsup@gmail.com"},{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"nlf","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ammo-2.0.4.tgz_1495950901169_0.9012154352385551"},"directories":{},"publish_time":1495950901245,"_cnpm_publish_time":1495950901245,"_hasShrinkwrap":false,"deprecated":"This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial)."},"2.0.3":{"name":"ammo","description":"HTTP Range processing utilities","version":"2.0.3","repository":{"type":"git","url":"git://github.com/hapijs/ammo.git"},"main":"lib/index.js","keywords":["http","range","utilities"],"engines":{"node":">=4.0.0"},"dependencies":{"boom":"4.x.x","hoek":"4.x.x"},"devDependencies":{"code":"4.x.x","lab":"11.x.x","wreck":"10.x.x"},"scripts":{"test":"lab -a code -t 100 -L","test-cov-html":"lab -a code -r html -o coverage.html"},"license":"BSD-3-Clause","gitHead":"c4ab0e8f93a29b28da21ece08504a00400e552a7","bugs":{"url":"https://github.com/hapijs/ammo/issues"},"homepage":"https://github.com/hapijs/ammo#readme","_id":"ammo@2.0.3","_shasum":"914bbcf65b043ed0f58a8a9d0196e250ec51e6a7","_from":".","_npmVersion":"4.0.3","_nodeVersion":"7.2.0","_npmUser":{"name":"hueniverse","email":"eran@hammer.io"},"dist":{"shasum":"914bbcf65b043ed0f58a8a9d0196e250ec51e6a7","size":3042,"noattachment":false,"key":"/ammo/-/ammo-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/ammo/download/ammo-2.0.3.tgz"},"maintainers":[{"name":"devinivy","email":"devin@bigroomstudios.com"},{"name":"marsup","email":"marsup@gmail.com"},{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"nlf","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ammo-2.0.3.tgz_1480383991026_0.16415502759627998"},"directories":{},"publish_time":1480383991249,"_cnpm_publish_time":1480383991249,"_hasShrinkwrap":false,"deprecated":"This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial)."},"2.0.2":{"name":"ammo","description":"HTTP Range processing utilities","version":"2.0.2","repository":{"type":"git","url":"git://github.com/hapijs/ammo.git"},"main":"lib/index.js","keywords":["http","range","utilities"],"engines":{"node":">=4.0.0"},"dependencies":{"boom":"3.x.x","hoek":"4.x.x"},"devDependencies":{"code":"3.x.x","lab":"10.x.x","wreck":"8.x.x"},"scripts":{"test":"lab -a code -t 100 -L","test-cov-html":"lab -a code -r html -o coverage.html"},"license":"BSD-3-Clause","gitHead":"805f9943e2e9b53fdc834400f56b517d95b5b566","bugs":{"url":"https://github.com/hapijs/ammo/issues"},"homepage":"https://github.com/hapijs/ammo#readme","_id":"ammo@2.0.2","_shasum":"366c55f7bc4f2f24218ed3a4dd4b8df135c2e6ca","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"hueniverse","email":"eran@hammer.io"},"dist":{"shasum":"366c55f7bc4f2f24218ed3a4dd4b8df135c2e6ca","size":2361,"noattachment":false,"key":"/ammo/-/ammo-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/ammo/download/ammo-2.0.2.tgz"},"maintainers":[{"name":"devinivy","email":"devin@bigroomstudios.com"},{"name":"marsup","email":"marsup@gmail.com"},{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"nlf","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ammo-2.0.2.tgz_1469647499949_0.8603241716045886"},"directories":{},"publish_time":1469647500177,"_cnpm_publish_time":1469647500177,"_hasShrinkwrap":false,"deprecated":"This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial)."},"2.0.1":{"name":"ammo","description":"HTTP Range processing utilities","version":"2.0.1","repository":{"type":"git","url":"git://github.com/hapijs/ammo.git"},"main":"lib/index.js","keywords":["http","range","utilities"],"engines":{"node":">=4.0.0"},"dependencies":{"boom":"3.x.x","hoek":"4.x.x"},"devDependencies":{"code":"2.x.x","lab":"10.x.x","wreck":"7.x.x"},"scripts":{"test":"lab -a code -t 100 -L","test-cov-html":"lab -a code -r html -o coverage.html"},"license":"BSD-3-Clause","gitHead":"b7d17b713c4a5a82ed3c0c6eae53cdde62aa0192","bugs":{"url":"https://github.com/hapijs/ammo/issues"},"homepage":"https://github.com/hapijs/ammo#readme","_id":"ammo@2.0.1","_shasum":"6a07ec78e8129de2dfd351ba6e798350b26a32df","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.1","_npmUser":{"name":"hueniverse","email":"eran@hammer.io"},"dist":{"shasum":"6a07ec78e8129de2dfd351ba6e798350b26a32df","size":3768,"noattachment":false,"key":"/ammo/-/ammo-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ammo/download/ammo-2.0.1.tgz"},"maintainers":[{"name":"devinivy","email":"devin@bigroomstudios.com"},{"name":"marsup","email":"marsup@gmail.com"},{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"nlf","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/ammo-2.0.1.tgz_1463679202288_0.6731137288734317"},"directories":{},"publish_time":1463679207174,"_cnpm_publish_time":1463679207174,"_hasShrinkwrap":false,"deprecated":"This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial)."},"2.0.0":{"name":"ammo","description":"HTTP Range processing utilities","version":"2.0.0","repository":{"type":"git","url":"git://github.com/hapijs/ammo.git"},"main":"lib/index.js","keywords":["http","range","utilities"],"engines":{"node":">=4.0.0"},"dependencies":{"boom":"3.x.x","hoek":"3.x.x"},"devDependencies":{"code":"2.x.x","lab":"7.x.x","wreck":"7.x.x"},"scripts":{"test":"lab -a code -t 100 -L","test-cov-html":"lab -a code -r html -o coverage.html"},"license":"BSD-3-Clause","gitHead":"a84c40eb64913984b7e2ce466a10a9bcc6c41a89","bugs":{"url":"https://github.com/hapijs/ammo/issues"},"homepage":"https://github.com/hapijs/ammo#readme","_id":"ammo@2.0.0","_shasum":"14dbdfc1fb62d7d8260206d37e48219265d24be8","_from":".","_npmVersion":"3.3.9","_nodeVersion":"4.2.1","_npmUser":{"name":"hueniverse","email":"eran@hammer.io"},"dist":{"shasum":"14dbdfc1fb62d7d8260206d37e48219265d24be8","size":3705,"noattachment":false,"key":"/ammo/-/ammo-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ammo/download/ammo-2.0.0.tgz"},"maintainers":[{"name":"devinivy","email":"devin@bigroomstudios.com"},{"name":"marsup","email":"marsup@gmail.com"},{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"nlf","email":""}],"directories":{},"publish_time":1446404894465,"_cnpm_publish_time":1446404894465,"_hasShrinkwrap":false,"deprecated":"This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial)."},"1.0.1":{"name":"ammo","description":"HTTP Range processing utilities","version":"1.0.1","repository":{"type":"git","url":"git://github.com/hapijs/ammo.git"},"main":"lib/index.js","keywords":["http","range","utilities"],"engines":{"node":">=0.10.32"},"dependencies":{"boom":"2.x.x","hoek":"2.x.x"},"devDependencies":{"code":"1.x.x","lab":"5.x.x","wreck":"5.x.x"},"scripts":{"test":"lab -a code -t 100 -L","test-cov-html":"lab -a code -r html -o coverage.html"},"license":"BSD-3-Clause","gitHead":"aaf7e172168e75a6291e35636c96f4e0fd902619","bugs":{"url":"https://github.com/hapijs/ammo/issues"},"homepage":"https://github.com/hapijs/ammo#readme","_id":"ammo@1.0.1","_shasum":"8f8add14cd49bdede3bab3a3e0ebcaf21d03de8b","_from":".","_npmVersion":"2.10.0","_nodeVersion":"0.10.38","_npmUser":{"name":"hueniverse","email":"eran@hammer.io"},"dist":{"shasum":"8f8add14cd49bdede3bab3a3e0ebcaf21d03de8b","size":3670,"noattachment":false,"key":"/ammo/-/ammo-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ammo/download/ammo-1.0.1.tgz"},"maintainers":[{"name":"devinivy","email":"devin@bigroomstudios.com"},{"name":"marsup","email":"marsup@gmail.com"},{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"nlf","email":""}],"directories":{},"publish_time":1435458222862,"_cnpm_publish_time":1435458222862,"_hasShrinkwrap":false,"deprecated":"This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial)."},"1.0.0":{"name":"ammo","description":"HTTP Range processing utilities","version":"1.0.0","repository":{"type":"git","url":"git://github.com/hapijs/ammo"},"main":"index","keywords":["http","range","utilities"],"engines":{"node":">=0.10.32"},"dependencies":{"boom":"2.x.x","hoek":"2.x.x"},"devDependencies":{"code":"1.x.x","lab":"5.x.x","wreck":"5.x.x"},"scripts":{"test":"make test-cov"},"licenses":[{"type":"BSD","url":"http://github.com/hapijs/ammo/raw/master/LICENSE"}],"gitHead":"1f39c1b7dd535f167e77f8947438d20bc54cfcd4","bugs":{"url":"https://github.com/hapijs/ammo/issues"},"homepage":"https://github.com/hapijs/ammo","_id":"ammo@1.0.0","_shasum":"e059481bf6808738fae86d464f72fa0c12d67a85","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"hueniverse","email":"eran@hueniverse.com"},"maintainers":[{"name":"devinivy","email":"devin@bigroomstudios.com"},{"name":"marsup","email":"marsup@gmail.com"},{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"nlf","email":""}],"dist":{"shasum":"e059481bf6808738fae86d464f72fa0c12d67a85","size":3833,"noattachment":false,"key":"/ammo/-/ammo-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ammo/download/ammo-1.0.0.tgz"},"directories":{},"publish_time":1416295872243,"_cnpm_publish_time":1416295872243,"_hasShrinkwrap":false,"deprecated":"This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial)."}},"readme":"# ammo\r\n\r\nHTTP Range processing utilities.\r\n\r\n[![Npm Version](https://img.shields.io/npm/v/ammo.svg)](https://npmjs.com/package/ammo)\r\n[![Build Status](https://secure.travis-ci.org/hapijs/ammo.png)](http://travis-ci.org/hapijs/ammo)\r\n\r\nLead Maintainer - [Gil Pedersen](https://github.com/kanongil)\r\n\r\n## Usage\r\n\r\n```js\r\n// basic usage\r\nconst range = Ammo.header('bytes=1-5', 10);\r\n// range --> [{ from: 1, to: 5 }]\r\n\r\n// multiple ranges\r\nconst range = Ammo.header('bytes=1-5,7-10', 10);\r\n// range --> [{ from: 1, to: 5 }, { from: 7, to: 9 }]\r\n\r\n// streams (get range within a `source`)\r\nconst range = Ammo.header('bytes=1000-4000', 5000);\r\nconst stream = new Ammo.Stream(range[0]);\r\nconst buffer = async Wreck.read(source.pipe(stream));\r\n\r\n// buffer is the portion of source within range\r\n```\r\n\r\n## API\r\n\r\n### `header(header, length)`\r\n\r\nParses the range from a HTTP header.\r\n\r\n* `header` - A string in the form of `bytes=from-to`, where `from` and `to` are\r\nintegers specifying the range. Both are optional. Multiple ranges can be passed\r\nas a comma delimited list.\r\n* `length` - A positive integer specifying the maximum length the range can\r\ncover. If a `to` value passed in the `header` string is greater than `length`,\r\nthe `to` value is set as `length - 1`.\r\n\r\nReturns an array of objects with the properties `from` and `to`, which specify\r\nthe beginning and ending of the range. Overlapping ranges are combined into one\r\nobject. Returns `null` for invalid input.\r\n\r\n### `new Ammo.Stream(range)`\r\n\r\nCreates a [`Transform Stream`](https://nodejs.org/api/stream.html) that extracts\r\nthe portion of a piped in stream within `range`.\r\n* `range` - an object with the properties `from` and `to` that specify the range\r\nof the piped in stream to read. Objects returned by `Ammo.header` can be passed\r\ninto `range`.\r\n","_attachments":{},"homepage":"https://github.com/hapijs/ammo#readme","bugs":{"url":"https://github.com/hapijs/ammo/issues"},"license":"BSD-3-Clause"}