{"name":"is-primitive","description":"Returns `true` if the value is a primitive. ","version":"0.1.0","homepage":"https://github.com/jonschlinkert/is-primitive","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/is-primitive.git"},"bugs":{"url":"https://github.com/jonschlinkert/is-primitive/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/is-primitive/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.0.4","verb":">= 0.2.6","verb-tag-jscomments":">= 0.2.0"},"keywords":["docs","documentation","generate","generator","markdown","templates","verb"],"_id":"is-primitive@0.1.0","_shasum":"6059181ec090d188a426e72b26f094c2ed20beaa","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"6059181ec090d188a426e72b26f094c2ed20beaa","tarball":"http://registry-npm.ywwl.com/is-primitive/download/is-primitive-0.1.0.tgz","integrity":"sha512-vBoucMhhxo6KDUcj69JentaykrB4vSwbpvkKorYJcMgvbojmTu2/bgKI3bstQRc32bL479Mad9jvITWFyPi1rw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYqUpPB31RPDLYPGqUbrYfNLfakXUe7szFZ3CA4YGGAAIgfJu/N0XhhpXwc+DVq2HeY4UxR9ffQy4Ty2/NpJdj/qI="}],"size":2767,"noattachment":false,"key":"/is-primitive/-/is-primitive-0.1.0.tgz"},"directories":{},"readme":"# is-primitive [![NPM version](https://img.shields.io/npm/v/is-primitive.svg?style=flat)](https://www.npmjs.com/package/is-primitive) [![NPM monthly downloads](https://img.shields.io/npm/dm/is-primitive.svg?style=flat)](https://npmjs.org/package/is-primitive) [![NPM total downloads](https://img.shields.io/npm/dt/is-primitive.svg?style=flat)](https://npmjs.org/package/is-primitive) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/is-primitive.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/is-primitive)\n\n> Returns `true` if the value is a primitive.\n\nPlease consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save is-primitive\n```\n\n## Primitive values\n\nThe [Mozilla docs for \"Primitive values\"](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Primitive_values) defines specifies six data types that are primitives:\n\n* `Boolean`\n* `Null`\n* `Undefined`\n* `Number`\n* `String`\n* `Symbol` (new in ECMAScript 6)\n\n## Usage\n\n```js\nvar isPrimitive = require('is-primitive');\n```\n\n## true\n\nAll of the following return `true`:\n\n```js\nconsole.log(isPrimitive(false));\nconsole.log(isPrimitive(true));\nconsole.log(isPrimitive(null));\nconsole.log(isPrimitive());\nconsole.log(isPrimitive(42));\nconsole.log(isPrimitive('abc'));\nconsole.log(isPrimitive(Symbol()));\n//=> true\n```\n\n## false\n\nEverything else returns `false`:\n\n```js\nconsole.log(isPrimitive({}));\nconsole.log(isPrimitive([]));\nconsole.log(isPrimitive(function(){}));\nconsole.log(isPrimitive(new Date()));\n// et cetera...\n//=> false\n```\n\n## About\n\n<details>\n<summary><strong>Contributing</strong></summary>\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n</details>\n\n<details>\n<summary><strong>Running Tests</strong></summary>\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n</details>\n\n<details>\n<summary><strong>Building docs</strong></summary>\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n</details>\n\n### Related projects\n\nYou might also be interested in these projects:\n\n* [is-number](https://www.npmjs.com/package/is-number): Returns true if the value is a number. comprehensive tests. | [homepage](https://github.com/jonschlinkert/is-number \"Returns true if the value is a number. comprehensive tests.\")\n* [is-plain-object](https://www.npmjs.com/package/is-plain-object): Returns true if an object was created by the `Object` constructor. | [homepage](https://github.com/jonschlinkert/is-plain-object \"Returns true if an object was created by the `Object` constructor.\")\n* [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value. | [homepage](https://github.com/jonschlinkert/kind-of \"Get the native type of a value.\")\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 11 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 1 | [ljharb](https://github.com/ljharb) |\n| 1 | [bttmly](https://github.com/bttmly) |\n| 1 | [hemanth](https://github.com/hemanth) |\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on November 23, 2017._","publish_time":1411717087567,"_cnpm_publish_time":1411717087567,"dist-tags":{"latest":"3.0.1"}}