{"name":"to-source-code","version":"1.0.1","description":"Converts function to its source code.","main":"index.js","scripts":{"lint":"jshint index.js","pretest":"npm run lint","test":"mocha -R spec","test:cov":"rm -rf ./test/coverage && istanbul cover _mocha --dir ./test/coverage -- -R spec","test:rpt":"npm run test:cov && coveralls < ./test/coverage/lcov.info","prepublish":"npm test"},"keywords":["to","parse","convert","converter","parser","source","function","func","fn","code"],"author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/bubkoo/to-source-code.git"},"bugs":{"url":"https://github.com/bubkoo/to-source-code/issues"},"homepage":"https://github.com/bubkoo/to-source-code#readme","devDependencies":{"jshint":"^2.9.1","chai":"^3.5.0","coveralls":"^2.11.9","istanbul":"^0.4.2","mocha":"^2.4.5"},"dependencies":{"is-nil":"^1.0.0"},"gitHead":"38589e1eaed4c3aff3e023c5aa727029f8a78052","_id":"to-source-code@1.0.1","_shasum":"e85d37ea67cb33b0b4a3381ca6a9070269880ff1","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.4.0","_npmUser":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"dist":{"shasum":"e85d37ea67cb33b0b4a3381ca6a9070269880ff1","tarball":"http://registry-npm.ywwl.com/to-source-code/download/to-source-code-1.0.1.tgz","integrity":"sha512-LMf73hNnqsoSXS0GnOYjoAHPCMmUM1DXbQULn/6t+3/sJiM8FiiUenrn6BJsvBT+cKcNZOYkgYoBKzwSL+ri5A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGKo90wbdC4JcdhX/KNRuWkaMwEMAIL0wv5O4EXP6n0AIhALKbr1WWIb6OB0xSjYnJpL9VWnDv8M87yUcq+806qdwm"}],"size":2108,"noattachment":false,"key":"/to-source-code/-/to-source-code-1.0.1.tgz"},"maintainers":[{"name":"bubkoo","email":"bubkoo.wy@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/to-source-code-1.0.1.tgz_1460541715492_0.08276760624721646"},"directories":{},"readme":"# to-source-code\n\n> Converts function to its source code.\n\n[![MIT License](https://img.shields.io/badge/license-MIT_License-green.svg?style=flat-square)](https://github.com/gearcase/to-source-code/blob/master/LICENSE)\n\n[![build:?](https://img.shields.io/travis/gearcase/to-source-code/master.svg?style=flat-square)](https://travis-ci.org/gearcase/to-source-code)\n[![coverage:?](https://img.shields.io/coveralls/gearcase/to-source-code/master.svg?style=flat-square)](https://coveralls.io/github/gearcase/to-source-code)\n\n\n## Install\n\n```\n$ npm install --save to-source-code \n```\n\n\n## Usage\n\n> For more use-cases see the [tests](https://github.com/gearcase/to-source-code/blob/master/test/spec/index.js)\n\n\n```js\nvar toSourceCode = require('to-source-code');\n\ntoSourceCode(Math.min);               \n// => 'function min() { [native code] }'\n\ntoSourceCode(function () { console.log(123); });              \n// => 'function () { console.log(123); }'\n\ntoSourceCode();      // => ''\ntoSourceCode(null);  // => ''\ntoSourceCode(1);     // => '1'\ntoSourceCode('1');   // => '1'\ntoSourceCode(true);  // => 'true'\ntoSourceCode({});    // => '[object Object]'\n```\n\n## Related\n\n- [is-native](https://github.com/gearcase/is-native) - Checks if the given value is a native function.\n- [to-num](https://github.com/gearcase/to-num) - Converts the given value to a number.\n- [to-integer](https://github.com/gearcase/to-integer) - Converts the given value to an integer.\n- [to-length](https://github.com/gearcase/to-length) - Converts value to an integer suitable for use as the length of an array-like object.\n- [to-str](https://github.com/gearcase/to-str) - Converts the given value to a string.\n- [to-lower](https://github.com/gearcase/to-lower) - Converts string, as a whole, to lower case.\n- [to-upper](https://github.com/gearcase/to-upper) - Converts string, as a whole, to upper case.\n- [to-path](https://github.com/gearcase/to-path) - Converts value to a property path array. \n\n## Contributing\n\nPull requests and stars are highly welcome.\n\nFor bugs and feature requests, please [create an issue](https://github.com/gearcase/to-source-code/issues/new).\n","publish_time":1460541718743,"_cnpm_publish_time":1460541718743,"dist-tags":{"latest":"1.0.2"}}