{"_id":"clamp","_rev":"219351","name":"clamp","description":"Clamp a value between two other values","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"hughsk","email":""}],"time":{"modified":"2023-03-24T09:32:25.000Z","created":"2013-10-16T09:15:17.719Z","1.0.1":"2014-07-29T21:11:09.012Z","1.0.0":"2014-03-21T03:19:38.631Z","0.0.0":"2013-10-16T09:15:17.719Z"},"users":{},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://github.com/hughsk"},"repository":{"type":"git","url":"git://github.com/hughsk/clamp"},"versions":{"1.0.1":{"name":"clamp","description":"Clamp a value between two other values","version":"1.0.1","main":"index.js","browser":"index.js","dependencies":{},"devDependencies":{"tape":"~2.0.0"},"scripts":{"test":"node test"},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://github.com/hughsk"},"license":"MIT","repository":{"type":"git","url":"git://github.com/hughsk/clamp"},"bugs":{"url":"https://github.com/hughsk/clamp/issues"},"keywords":["clamp","math","greater","less","than","between"],"gitHead":"377851f0cca9f3f134b53881e294782cccdae4d8","homepage":"https://github.com/hughsk/clamp","_id":"clamp@1.0.1","_shasum":"66a0e64011816e37196828fdc8c8c147312c8634","_from":".","_npmVersion":"1.5.0-alpha-4","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":""}],"dist":{"shasum":"66a0e64011816e37196828fdc8c8c147312c8634","size":1682,"noattachment":false,"key":"/clamp/-/clamp-1.0.1.tgz","tarball":"http://name.csiicloud.com:7001/clamp/download/clamp-1.0.1.tgz"},"directories":{},"publish_time":1406668269012,"_hasShrinkwrap":false,"_cnpm_publish_time":1406668269012,"_cnpmcore_publish_time":"2021-12-15T15:37:53.347Z"},"1.0.0":{"name":"clamp","description":"Clamp a value between two other values","version":"1.0.0","main":"index.js","browser":"index.js","dependencies":{},"devDependencies":{"tape":"~2.0.0"},"scripts":{},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://github.com/hughsk"},"license":"MIT","repository":{"type":"git","url":"git://github.com/hughsk/clamp"},"bugs":{"url":"https://github.com/hughsk/clamp/issues"},"keywords":["clamp","math","greater","less","than","between"],"homepage":"https://github.com/hughsk/clamp","_id":"clamp@1.0.0","dist":{"shasum":"d8f43ad769a8737022be423bc13e0730624ae8d9","size":1650,"noattachment":false,"key":"/clamp/-/clamp-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/clamp/download/clamp-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":""}],"directories":{},"publish_time":1395371978631,"_hasShrinkwrap":false,"_cnpm_publish_time":1395371978631,"_cnpmcore_publish_time":"2021-12-15T15:37:53.590Z"},"0.0.0":{"name":"clamp","description":"Clamp a value between two other values","version":"0.0.0","main":"index.js","browser":"index.js","dependencies":{},"devDependencies":{"tape":"~2.0.0"},"scripts":{},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://github.com/hughsk"},"license":"MIT","repository":{"type":"git","url":"git://github.com/hughsk/clamp"},"bugs":{"url":"https://github.com/hughsk/clamp/issues"},"keywords":["clamp","math","greater","less","than","between"],"readmeFilename":"README.md","_id":"clamp@0.0.0","dist":{"shasum":"209718cf7d797c5589991a809d22ca693b44f7d3","size":1640,"noattachment":false,"key":"/clamp/-/clamp-0.0.0.tgz","tarball":"http://name.csiicloud.com:7001/clamp/download/clamp-0.0.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":""}],"directories":{},"publish_time":1381914917719,"_hasShrinkwrap":false,"_cnpm_publish_time":1381914917719,"_cnpmcore_publish_time":"2021-12-15T15:37:53.852Z"}},"readme":"# clamp [![frozen](http://hughsk.github.io/stability-badges/dist/frozen.svg)](http://github.com/hughsk/stability-badges) #\n\nClamp a value between two other values. It's as simple as modules come - saving\nkeystrokes because I've had to write this function too many times.\n\n## Usage ##\n\n[![clamp](https://nodei.co/npm/clamp.png?mini=true)](https://nodei.co/npm/clamp)\n\n### `clamp(value, a, b)` ###\n\nReturns `value`, if it is between `a` and `b`. Otherwise, returns the number\nit's gone past.\n\n## License ##\n\nMIT. See [LICENSE.md](http://github.com/hughsk/clamp/blob/master/LICENSE.md) for details.\n","_attachments":{},"homepage":"https://github.com/hughsk/clamp","bugs":{"url":"https://github.com/hughsk/clamp/issues"},"license":"MIT"}