{"_id":"is-primitive","_rev":"9791","name":"is-primitive","description":"Returns `true` if the value is a primitive. ","dist-tags":{"latest":"3.0.1"},"maintainers":[{"name":"doowb","email":""},{"name":"jonschlinkert","email":""}],"time":{"modified":"2023-09-20T22:03:37.000Z","created":"2014-09-26T07:38:07.567Z","3.0.1":"2018-06-10T20:31:05.843Z","3.0.0":"2017-11-23T11:32:46.004Z","2.0.0":"2015-03-17T04:00:41.319Z","1.0.0":"2015-02-13T03:18:15.943Z","0.1.0":"2014-09-26T07:38:07.567Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/is-primitive.git"},"versions":{"3.0.1":{"name":"is-primitive","description":"Returns `true` if the value is a primitive. ","version":"3.0.1","homepage":"https://github.com/jonschlinkert/is-primitive","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"name":"hemanth.hm","url":"http://h3manth.com"},{"name":"Jon Schlinkert","url":"http://twitter.com/jonschlinkert"},{"name":"Jordan Harband","url":"https://twitter.com/ljharb"},{"name":"Nick Bottomley","url":"https://github.com/bttmly"}],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/is-primitive.git"},"bugs":{"url":"https://github.com/jonschlinkert/is-primitive/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"benchmark":"^2.1.4","gulp-format-md":"^1.0.0","mocha":"^3.5.3"},"keywords":["boolean","check","is","number","primitive","string","symbol","type","typeof","util"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["is-number","is-plain-object","kind-of"]},"lint":{"reflinks":true}},"gitHead":"b22c524da5cbac075f14145780ec4b3637afd7dc","_id":"is-primitive@3.0.1","_npmVersion":"6.0.1","_nodeVersion":"10.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"98c4db1abff185485a657fc2905052b940524d05","size":2833,"noattachment":false,"key":"/is-primitive/-/is-primitive-3.0.1.tgz","tarball":"http://name.csiicloud.com:7001/is-primitive/download/is-primitive-3.0.1.tgz"},"maintainers":[{"name":"doowb","email":""},{"name":"jonschlinkert","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-primitive_3.0.1_1528662665793_0.5506503739500361"},"_hasShrinkwrap":false,"publish_time":1528662665843,"_cnpm_publish_time":1528662665843},"3.0.0":{"name":"is-primitive","description":"Returns `true` if the value is a primitive. ","version":"3.0.0","homepage":"https://github.com/jonschlinkert/is-primitive","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"name":"hemanth.hm","url":"http://h3manth.com"},{"name":"Jon Schlinkert","url":"http://twitter.com/jonschlinkert"},{"name":"Jordan Harband","url":"https://twitter.com/ljharb"},{"name":"Nick Bottomley","url":"https://github.com/bttmly"}],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/is-primitive.git"},"bugs":{"url":"https://github.com/jonschlinkert/is-primitive/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^1.0.0","mocha":"^3.5.3"},"keywords":["boolean","check","is","number","primitive","string","symbol","type","typeof","util"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["kind-of","is-number","is-plain-object"]},"lint":{"reflinks":true}},"gitHead":"78f6c2e0a78a6b9b3eb6c90d20970a2874173364","_id":"is-primitive@3.0.0","_npmVersion":"5.5.1","_nodeVersion":"9.1.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"ddc27a9f9ebe7bed4b4f308acc9abb1c7a025757","size":2861,"noattachment":false,"key":"/is-primitive/-/is-primitive-3.0.0.tgz","tarball":"http://name.csiicloud.com:7001/is-primitive/download/is-primitive-3.0.0.tgz"},"maintainers":[{"name":"doowb","email":""},{"name":"jonschlinkert","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-primitive-3.0.0.tgz_1511436765135_0.9479931348469108"},"directories":{},"publish_time":1511436766004,"_cnpm_publish_time":1511436766004,"_hasShrinkwrap":false},"2.0.0":{"name":"is-primitive","description":"Returns `true` if the value is a primitive. ","version":"2.0.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"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/is-primitive/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"^4.0.4"},"keywords":["boolean","check","number","primitive","string","symbol","type","typeof","util"],"gitHead":"c512b7c95fb049aa9b1f039ddc0670611b66cce2","_id":"is-primitive@2.0.0","_shasum":"207bab91638499c07b2adf240a41a87210034575","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":""},{"name":"jonschlinkert","email":""}],"dist":{"shasum":"207bab91638499c07b2adf240a41a87210034575","size":1738,"noattachment":false,"key":"/is-primitive/-/is-primitive-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/is-primitive/download/is-primitive-2.0.0.tgz"},"directories":{},"publish_time":1426564841319,"_cnpm_publish_time":1426564841319,"_hasShrinkwrap":false},"1.0.0":{"name":"is-primitive","description":"Returns `true` if the value is a primitive. ","version":"1.0.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"}],"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"^4.0.4"},"keywords":["boolean","check","number","primitive","string","symbol","type","typeof","util"],"gitHead":"d15fedd28047fed01efbe6cbba743dd3516a284c","_id":"is-primitive@1.0.0","_shasum":"c3677046fe11225017222204dd602503f7e5eb74","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":""},{"name":"jonschlinkert","email":""}],"dist":{"shasum":"c3677046fe11225017222204dd602503f7e5eb74","size":1102,"noattachment":false,"key":"/is-primitive/-/is-primitive-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/is-primitive/download/is-primitive-1.0.0.tgz"},"directories":{},"publish_time":1423797495943,"_cnpm_publish_time":1423797495943,"_hasShrinkwrap":false},"0.1.0":{"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":"doowb","email":""},{"name":"jonschlinkert","email":""}],"dist":{"shasum":"6059181ec090d188a426e72b26f094c2ed20beaa","size":2767,"noattachment":false,"key":"/is-primitive/-/is-primitive-0.1.0.tgz","tarball":"http://name.csiicloud.com:7001/is-primitive/download/is-primitive-0.1.0.tgz"},"directories":{},"publish_time":1411717087567,"_cnpm_publish_time":1411717087567,"_hasShrinkwrap":false}},"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._","_attachments":{},"homepage":"https://github.com/jonschlinkert/is-primitive","bugs":{"url":"https://github.com/jonschlinkert/is-primitive/issues"},"license":"MIT"}