{"_id":"compute-deg2rad","_rev":"6-ac49f538ca70a97f24c194b470306984","name":"compute-deg2rad","description":"Converts degrees to radians.","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.0":{"name":"compute-deg2rad","version":"0.0.0","description":"Converts degrees to radians.","author":{"name":"Athan Reines","email":"kgryte@gmail.com"},"contributors":[{"name":"Athan Reines","email":"kgryte@gmail.com"}],"scripts":{"test":"mocha","test-cov":"istanbul cover ./node_modules/.bin/_mocha --dir ./reports/coverage -- -R spec","coveralls":"istanbul cover ./node_modules/.bin/_mocha --dir ./reports/coveralls/coverage --report lcovonly -- -R spec && cat ./reports/coveralls/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./reports/coveralls"},"main":"./lib","repository":{"type":"git","url":"git://github.com/compute-io/deg2rad.git"},"keywords":["compute.io","compute","computation","mathematics","math","degrees","radians","convert","array","geometry","utility","utils"],"bugs":{"url":"https://github.com/compute-io/deg2rad/issues"},"dependencies":{},"devDependencies":{"chai":"1.x.x","mocha":"1.x.x","coveralls":"^2.11.1","istanbul":"^0.3.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"gitHead":"0cbd84892d0ee6a4e3cf0dfc6d3118412d77661b","homepage":"https://github.com/compute-io/deg2rad","_id":"compute-deg2rad@0.0.0","_shasum":"ae77d778dfe7c0bc922fcfee02768952785b98ad","_from":".","_npmVersion":"1.5.0-alpha-1","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"dist":{"shasum":"ae77d778dfe7c0bc922fcfee02768952785b98ad","tarball":"https://registry.npmjs.org/compute-deg2rad/-/compute-deg2rad-0.0.0.tgz","integrity":"sha512-Dtd/nGKpXrOnsfaPAEA+ZenRpHOsixyqDSYBqzbzBEzdgSs9SmNSqOAbO5C1ImRFOUIcOej4/SlkHmsBRm0F0A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFSH6l9heI84fBYzOPvHZZLOtiFKTnOE7DI8td2aai/SAiEAg7l8n648YrwFwYwm0yNm4C3jqXIe3u3WF5ByuL4frEs="}]}},"1.0.0":{"name":"compute-deg2rad","version":"1.0.0","description":"Converts degrees to radians.","author":{"name":"Athan Reines","email":"kgryte@gmail.com"},"contributors":[{"name":"Athan Reines","email":"kgryte@gmail.com"}],"scripts":{"test":"mocha","test-cov":"istanbul cover ./node_modules/.bin/_mocha --dir ./reports/coverage -- -R spec","coveralls":"istanbul cover ./node_modules/.bin/_mocha --dir ./reports/coveralls/coverage --report lcovonly -- -R spec && cat ./reports/coveralls/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./reports/coveralls"},"main":"./lib","repository":{"type":"git","url":"git://github.com/compute-io/deg2rad.git"},"keywords":["compute.io","compute","computation","mathematics","math","degrees","radians","convert","array","geometry","utility","utils"],"bugs":{"url":"https://github.com/compute-io/deg2rad/issues"},"dependencies":{},"devDependencies":{"chai":"1.x.x","mocha":"1.x.x","coveralls":"^2.11.1","istanbul":"^0.3.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"gitHead":"6442494fe59f2a8a41334a2aa9fb01710bc63b73","homepage":"https://github.com/compute-io/deg2rad","_id":"compute-deg2rad@1.0.0","_shasum":"8d23d2251b74bb73c9552d345e65ff4ab1850b0b","_from":".","_npmVersion":"1.5.0-alpha-1","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"dist":{"shasum":"8d23d2251b74bb73c9552d345e65ff4ab1850b0b","tarball":"https://registry.npmjs.org/compute-deg2rad/-/compute-deg2rad-1.0.0.tgz","integrity":"sha512-a5cf1WXocLaXcy9OLZUwyl5tjnXR09C/ovX9prCiP9FBgkpQ77iUL3CAw1FJx7QHkiXliRmgQbFJOlGT+WofRQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8HA1ZQZ7T4mOfADvlXVdh1CcH9Pipjqs5c4TypzUEJQIhAKILQvKTfABAPswd5EMWzMwSURcIN4Xh87h9Pttp8XkG"}]}}},"readme":"deg2rad\n===\n[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependencies][dependencies-image]][dependencies-url]\n\n> Converts degrees to radians.\n\n\n## Installation\n\n``` bash\n$ npm install compute-deg2rad\n```\n\nFor use in the browser, use [browserify](https://github.com/substack/node-browserify).\n\n\n## Usage\n\nTo use the module,\n\n``` javascript\nvar deg2rad = require( 'compute-deg2rad' );\n```\n\n#### deg2rad( x )\n\nConverts degrees to radians. `x` may be either a numeric `array` or a single numeric value.\n\n``` javascript\n// Single value:\nvar rad = deg2rad( 90 );\n// returns pi/2\n\n// Array of values:\nvar degs = [ 0, 45, 90, 135, 180 ];\n\ndeg2rad( degs );\n// returns [ 0, pi/4, pi/2, 3pi/4, pi ]\n```\n\n\n## Examples\n\n``` javascript\nvar deg2rad = require( 'compute-deg2rad' );\n\n// Simulate some data...\nvar data = new Array( 100 );\n\nfor ( var i = 0; i < data.length; i++ ) {\n\tdata[ i ] = Math.random()*360;\n}\n\ndeg2rad( data );\n\nconsole.log( data.join( '\\n' ) );\n```\n\nTo run the example code from the top-level application directory,\n\n``` bash\n$ node ./examples/index.js\n```\n\n\n## Notes\n\nIf provided an input `array`, the `array` is mutated. If mutation is undesired,\n\n``` javascript\nvar data = [ 0, 45, 90, 135, 180 ],\n\tcopy = data.slice();\n\ndeg2rad( copy );\n```\n\nIf provided an empty `array`, the function returns `null`.\n\n\n## Tests\n\n### Unit\n\nUnit tests use the [Mocha](http://visionmedia.github.io/mocha) test framework with [Chai](http://chaijs.com) assertions. To run the tests, execute the following command in the top-level application directory:\n\n``` bash\n$ make test\n```\n\nAll new feature development should have corresponding unit tests to validate correct functionality.\n\n\n### Test Coverage\n\nThis repository uses [Istanbul](https://github.com/gotwarlost/istanbul) as its code coverage tool. To generate a test coverage report, execute the following command in the top-level application directory:\n\n``` bash\n$ make test-cov\n```\n\nIstanbul creates a `./reports/coverage` directory. To access an HTML version of the report,\n\n``` bash\n$ make view-cov\n```\n\n\n## License\n\n[MIT license](http://opensource.org/licenses/MIT). \n\n\n---\n## Copyright\n\nCopyright &copy; 2014. Athan Reines.\n\n\n[npm-image]: http://img.shields.io/npm/v/compute-deg2rad.svg\n[npm-url]: https://npmjs.org/package/compute-deg2rad\n\n[travis-image]: http://img.shields.io/travis/compute-io/deg2rad/master.svg\n[travis-url]: https://travis-ci.org/compute-io/deg2rad\n\n[coveralls-image]: https://img.shields.io/coveralls/compute-io/deg2rad/master.svg\n[coveralls-url]: https://coveralls.io/r/compute-io/deg2rad?branch=master\n\n[dependencies-image]: http://img.shields.io/david/compute-io/deg2rad.svg\n[dependencies-url]: https://david-dm.org/compute-io/deg2rad\n\n[dev-dependencies-image]: http://img.shields.io/david/dev/compute-io/deg2rad.svg\n[dev-dependencies-url]: https://david-dm.org/dev/compute-io/deg2rad\n\n[github-issues-image]: http://img.shields.io/github/issues/compute-io/deg2rad.svg\n[github-issues-url]: https://github.com/compute-io/deg2rad/issues\n","maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"time":{"modified":"2022-06-13T20:27:32.799Z","created":"2014-11-09T21:18:00.777Z","0.0.0":"2014-11-09T21:18:00.777Z","1.0.0":"2014-11-09T21:18:18.620Z"},"homepage":"https://github.com/compute-io/deg2rad","keywords":["compute.io","compute","computation","mathematics","math","degrees","radians","convert","array","geometry","utility","utils"],"repository":{"type":"git","url":"git://github.com/compute-io/deg2rad.git"},"contributors":[{"name":"Athan Reines","email":"kgryte@gmail.com"}],"author":{"name":"Athan Reines","email":"kgryte@gmail.com"},"bugs":{"url":"https://github.com/compute-io/deg2rad/issues"},"readmeFilename":"README.md"}