{"_id":"compute-rad2deg","_rev":"6-5325b8f1470274a11ebd976fdacf17e3","name":"compute-rad2deg","description":"Converts radians to degrees.","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.0":{"name":"compute-rad2deg","version":"0.0.0","description":"Converts radians to degrees.","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/rad2deg.git"},"keywords":["compute.io","compute","computation","mathematics","math","degrees","radians","convert","array","geometry","utility","utils"],"bugs":{"url":"https://github.com/compute-io/rad2deg/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":"8bbd5c47504675f6aa0ecc6ef028d02d6673d533","homepage":"https://github.com/compute-io/rad2deg","_id":"compute-rad2deg@0.0.0","_shasum":"5b43ed52a4385f8cb9b56e3b1e640386878946a5","_from":".","_npmVersion":"1.5.0-alpha-1","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"dist":{"shasum":"5b43ed52a4385f8cb9b56e3b1e640386878946a5","tarball":"https://registry.npmjs.org/compute-rad2deg/-/compute-rad2deg-0.0.0.tgz","integrity":"sha512-sh5YXgybN0XNqpMhfQxT1V6i4SaxhOLRbw8g/7CyuI9yRNxu/Sq1B0fbGrVlQKw8BpmIsnYjw6uHEjRakfAd2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbGX7XoKLGh6rq7ome49DN9S9S4bpqLgtM+DC9zz9wJwIgY+IIuGS6zW2zD5Y7Dufi+NMsybMCyxtRR55RrLmlR2Y="}]}},"1.0.0":{"name":"compute-rad2deg","version":"1.0.0","description":"Converts radians to degrees.","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/rad2deg.git"},"keywords":["compute.io","compute","computation","mathematics","math","degrees","radians","convert","array","geometry","utility","utils"],"bugs":{"url":"https://github.com/compute-io/rad2deg/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":"fc547d474a9a4fc591ff4ad1a508882d0921e95e","homepage":"https://github.com/compute-io/rad2deg","_id":"compute-rad2deg@1.0.0","_shasum":"6fdd7afe7304a08a75a7213a5d0d66ebb38e2ad8","_from":".","_npmVersion":"1.5.0-alpha-1","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"dist":{"shasum":"6fdd7afe7304a08a75a7213a5d0d66ebb38e2ad8","tarball":"https://registry.npmjs.org/compute-rad2deg/-/compute-rad2deg-1.0.0.tgz","integrity":"sha512-xFcbW7yZudfESWXsLgKMZfABWXbJ3vH9xtFJXkO8qFoEM5rbiwnVjSo17P7Oa4UFtnmnBiKgJCnk9R1twVbmzw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBI7cK4nwetLY/Vxxlzesgwu4yPFEAmRCGxmZ8BVPq7UAiEAhPeVpYtUL41HvrL2bdA7ZbOMtDfXpFDIei1bKetH420="}]}}},"readme":"rad2deg\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 radians to degrees.\n\n\n## Installation\n\n``` bash\n$ npm install compute-rad2deg\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 rad2deg = require( 'compute-rad2deg' );\n```\n\n#### rad2deg( x )\n\nConverts radians to degrees. `x` may be either a numeric `array` or a single numeric value.\n\n``` javascript\n// Single value:\nvar deg = rad2deg( Math.PI/2 );\n// returns 90\n\n// Array of values:\nvar rads = [ 0, Math.PI/4, Math.PI/2, 3*Math.PI/4, Math.PI ];\n\nrad2deg( rads );\n// returns [ 0, 45, 90, 135, 180 ]\n```\n\n\n## Examples\n\n``` javascript\nvar rad2deg = require( 'compute-rad2deg' );\n\n// Simulate some data...\nvar data = new Array( 100 );\n\nvar twopi = 2*Math.PI;\nfor ( var i = 0; i < data.length; i++ ) {\n\tdata[ i ] = Math.random()*twopi;\n}\n\nrad2deg( 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\n* \tIf 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\nrad2deg( copy );\n```\n\n*\tIf provided an empty `array`, the function returns `null`.\n\n*\t__Beware__ of floating point errors.\n\n``` javascript\nvar deg = rad2deg( Math.PI / 6 );\n// returns 29.999999999999996 instead of 30\n```\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-rad2deg.svg\n[npm-url]: https://npmjs.org/package/compute-rad2deg\n\n[travis-image]: http://img.shields.io/travis/compute-io/rad2deg/master.svg\n[travis-url]: https://travis-ci.org/compute-io/rad2deg\n\n[coveralls-image]: https://img.shields.io/coveralls/compute-io/rad2deg/master.svg\n[coveralls-url]: https://coveralls.io/r/compute-io/rad2deg?branch=master\n\n[dependencies-image]: http://img.shields.io/david/compute-io/rad2deg.svg\n[dependencies-url]: https://david-dm.org/compute-io/rad2deg\n\n[dev-dependencies-image]: http://img.shields.io/david/dev/compute-io/rad2deg.svg\n[dev-dependencies-url]: https://david-dm.org/dev/compute-io/rad2deg\n\n[github-issues-image]: http://img.shields.io/github/issues/compute-io/rad2deg.svg\n[github-issues-url]: https://github.com/compute-io/rad2deg/issues\n","maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"time":{"modified":"2022-06-13T20:31:57.820Z","created":"2014-11-09T21:40:46.680Z","0.0.0":"2014-11-09T21:40:46.680Z","1.0.0":"2014-11-09T21:41:04.234Z"},"homepage":"https://github.com/compute-io/rad2deg","keywords":["compute.io","compute","computation","mathematics","math","degrees","radians","convert","array","geometry","utility","utils"],"repository":{"type":"git","url":"git://github.com/compute-io/rad2deg.git"},"contributors":[{"name":"Athan Reines","email":"kgryte@gmail.com"}],"author":{"name":"Athan Reines","email":"kgryte@gmail.com"},"bugs":{"url":"https://github.com/compute-io/rad2deg/issues"},"readmeFilename":"README.md"}