{"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"keywords":["primitive","abstract","ecmascript","es5","es6","toPrimitive","coerce","type","object"],"dist-tags":{"latest":"1.1.1"},"author":{"name":"Jordan Harband"},"description":"ECMAScript “ToPrimitive” algorithm. Provides ES5 and ES6 versions.","readme":"# es-to-primitive <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![Build Status][travis-svg]][travis-url]\n[![dependency status][deps-svg]][deps-url]\n[![dev dependency status][dev-deps-svg]][dev-deps-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\n[![browser support][testling-svg]][testling-url]\n\nECMAScript “ToPrimitive” algorithm. Provides ES5 and ES6 versions.\nWhen different versions of the spec conflict, the default export will be the latest version of the abstract operation.\nAlternative versions will also be available under an `es5`/`es6`/`es7` exported property if you require a specific version.\n\n## Example\n\n```js\nvar toPrimitive = require('es-to-primitive');\nvar assert = require('assert');\n\nassert(toPrimitive(function () {}) === String(function () {}));\n\nvar date = new Date();\nassert(toPrimitive(date) === String(date));\n\nassert(toPrimitive({ valueOf: function () { return 3; } }) === 3);\n\nassert(toPrimitive(['a', 'b', 3]) === String(['a', 'b', 3]));\n\nvar sym = Symbol();\nassert(toPrimitive(Object(sym)) === sym);\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/es-to-primitive\n[npm-version-svg]: http://versionbadg.es/ljharb/es-to-primitive.svg\n[travis-svg]: https://travis-ci.org/ljharb/es-to-primitive.svg\n[travis-url]: https://travis-ci.org/ljharb/es-to-primitive\n[deps-svg]: https://david-dm.org/ljharb/es-to-primitive.svg\n[deps-url]: https://david-dm.org/ljharb/es-to-primitive\n[dev-deps-svg]: https://david-dm.org/ljharb/es-to-primitive/dev-status.svg\n[dev-deps-url]: https://david-dm.org/ljharb/es-to-primitive#info=devDependencies\n[testling-svg]: https://ci.testling.com/ljharb/es-to-primitive.png\n[testling-url]: https://ci.testling.com/ljharb/es-to-primitive\n[npm-badge-png]: https://nodei.co/npm/es-to-primitive.png?downloads=true&stars=true\n[license-image]: http://img.shields.io/npm/l/es-to-primitive.svg\n[license-url]: LICENSE\n[downloads-image]: http://img.shields.io/npm/dm/es-to-primitive.svg\n[downloads-url]: http://npm-stat.com/charts.html?package=es-to-primitive\n","repository":{"type":"git","url":"git://github.com/ljharb/es-to-primitive.git"},"bugs":{"url":"https://github.com/ljharb/es-to-primitive/issues"},"license":"MIT","versions":{"1.0.0":{"name":"es-to-primitive","version":"1.0.0","author":{"name":"Jordan Harband"},"description":"ECMAScript “ToPrimitive” algorithm. Provides ES5 and ES6 versions.","license":"MIT","main":"index.js","scripts":{"test":"npm run lint && node --harmony --es-staging test && npm run security","coverage":"covert test/*.js","coverage-quiet":"covert test/*.js --quiet","lint":"npm run jscs && npm run eslint","jscs":"jscs test/*.js *.js","eslint":"eslint test/*.js *.js","eccheck":"editorconfig-tools check *.js **/*.js > /dev/null","security":"nsp package"},"repository":{"type":"git","url":"git://github.com/ljharb/es-to-primitive.git"},"keywords":["primitive","abstract","ecmascript","es5","es6","toPrimitive","coerce","type","object"],"dependencies":{"is-callable":"^1.0.4","is-date-object":"^1.0.0","is-symbol":"^1.0.1"},"devDependencies":{"tape":"^3.5.0","covert":"^1.0.1","object-is":"^1.0.1","foreach":"^2.0.5","jscs":"^1.11.3","editorconfig-tools":"^0.1.1","nsp":"^1.0.1","eslint":"^0.17.0","make-arrow-function":"^1.0.0","make-generator-function":"^1.1.0","replace":"^0.3.0","semver":"^4.3.1"},"testling":{"files":"test.js","browsers":["iexplore/6.0..latest","firefox/3.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/10.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"cf3f44b793aaa5c340e1da4b49d37fb5f2dd413d","bugs":{"url":"https://github.com/ljharb/es-to-primitive/issues"},"homepage":"https://github.com/ljharb/es-to-primitive","_id":"es-to-primitive@1.0.0","_shasum":"469bea3a1b3b41f2e2af0a8c9c8c75a1ac8d517f","_from":".","_npmVersion":"2.7.2","_nodeVersion":"1.5.1","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"dist":{"shasum":"469bea3a1b3b41f2e2af0a8c9c8c75a1ac8d517f","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/es-to-primitive/-/es-to-primitive-1.0.0.tgz"},"directories":{}},"1.1.0":{"name":"es-to-primitive","version":"1.1.0","author":{"name":"Jordan Harband"},"description":"ECMAScript “ToPrimitive” algorithm. Provides ES5 and ES6 versions.","license":"MIT","main":"index.js","scripts":{"test":"npm run lint && npm run tests-only && npm run security","tests-only":"node --es-staging test","coverage":"covert test/*.js","coverage-quiet":"covert test/*.js --quiet","lint":"npm run jscs && npm run eslint","jscs":"jscs test/*.js *.js","eslint":"eslint test/*.js *.js","security":"nsp check"},"repository":{"type":"git","url":"git://github.com/ljharb/es-to-primitive.git"},"keywords":["primitive","abstract","ecmascript","es5","es6","toPrimitive","coerce","type","object"],"dependencies":{"is-callable":"^1.1.1","is-date-object":"^1.0.1","is-symbol":"^1.0.1"},"devDependencies":{"tape":"^4.4.0","covert":"^1.1.0","object-is":"^1.0.1","foreach":"^2.0.5","jscs":"^2.7.0","nsp":"^2.2.0","eslint":"^1.10.3","@ljharb/eslint-config":"^1.6.0","replace":"^0.3.0","semver":"^5.1.0"},"testling":{"files":"test","browsers":["iexplore/6.0..latest","firefox/3.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/10.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"4a15be41802efab7f63836a567b4012d5b48a4d0","bugs":{"url":"https://github.com/ljharb/es-to-primitive/issues"},"homepage":"https://github.com/ljharb/es-to-primitive#readme","_id":"es-to-primitive@1.1.0","_shasum":"0f8de4e23e86abb53a1a079de63bd98ab25ee983","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"dist":{"shasum":"0f8de4e23e86abb53a1a079de63bd98ab25ee983","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/es-to-primitive/-/es-to-primitive-1.1.0.tgz"},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"directories":{}},"1.0.1":{"name":"es-to-primitive","version":"1.0.1","author":{"name":"Jordan Harband"},"description":"ECMAScript “ToPrimitive” algorithm. Provides ES5 and ES6 versions.","license":"MIT","main":"index.js","scripts":{"test":"npm run lint && npm run tests-only && npm run security","tests-only":"node --es-staging test","coverage":"covert test/*.js","coverage-quiet":"covert test/*.js --quiet","lint":"npm run jscs && npm run eslint","jscs":"jscs test/*.js *.js","eslint":"eslint test/*.js *.js","security":"nsp check"},"repository":{"type":"git","url":"git://github.com/ljharb/es-to-primitive.git"},"keywords":["primitive","abstract","ecmascript","es5","es6","toPrimitive","coerce","type","object"],"dependencies":{"is-callable":"^1.1.1","is-date-object":"^1.0.1","is-symbol":"^1.0.1"},"devDependencies":{"tape":"^4.4.0","covert":"^1.1.0","object-is":"^1.0.1","foreach":"^2.0.5","jscs":"^2.7.0","nsp":"^2.2.0","eslint":"^1.10.3","@ljharb/eslint-config":"^1.6.0","replace":"^0.3.0","semver":"^5.1.0"},"testling":{"files":"test","browsers":["iexplore/6.0..latest","firefox/3.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/10.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"33543b6d593197d9f5d9db3bbe0953f330a639ad","bugs":{"url":"https://github.com/ljharb/es-to-primitive/issues"},"homepage":"https://github.com/ljharb/es-to-primitive#readme","_id":"es-to-primitive@1.0.1","_shasum":"a3232761b89e025ed982f5b097dfb7371d70023f","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"dist":{"shasum":"a3232761b89e025ed982f5b097dfb7371d70023f","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/es-to-primitive/-/es-to-primitive-1.0.1.tgz"},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"directories":{}},"1.1.1":{"name":"es-to-primitive","version":"1.1.1","author":{"name":"Jordan Harband"},"description":"ECMAScript “ToPrimitive” algorithm. Provides ES5 and ES6 versions.","license":"MIT","main":"index.js","scripts":{"test":"npm run lint && npm run tests-only && npm run security","tests-only":"node --es-staging test","coverage":"covert test/*.js","coverage-quiet":"covert test/*.js --quiet","lint":"npm run jscs && npm run eslint","jscs":"jscs test/*.js *.js","eslint":"eslint test/*.js *.js","security":"nsp check"},"repository":{"type":"git","url":"git://github.com/ljharb/es-to-primitive.git"},"keywords":["primitive","abstract","ecmascript","es5","es6","toPrimitive","coerce","type","object"],"dependencies":{"is-callable":"^1.1.1","is-date-object":"^1.0.1","is-symbol":"^1.0.1"},"devDependencies":{"tape":"^4.4.0","covert":"^1.1.0","object-is":"^1.0.1","foreach":"^2.0.5","jscs":"^2.7.0","nsp":"^2.2.0","eslint":"^1.10.3","@ljharb/eslint-config":"^1.6.1","replace":"^0.3.0","semver":"^5.1.0"},"testling":{"files":"test","browsers":["iexplore/6.0..latest","firefox/3.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/10.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"56cd0400062c37e3427c59ddf7852972cf14e6fe","bugs":{"url":"https://github.com/ljharb/es-to-primitive/issues"},"homepage":"https://github.com/ljharb/es-to-primitive#readme","_id":"es-to-primitive@1.1.1","_shasum":"45355248a88979034b6792e19bb81f2b7975dd0d","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"dist":{"shasum":"45355248a88979034b6792e19bb81f2b7975dd0d","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/es-to-primitive/-/es-to-primitive-1.1.1.tgz"},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"directories":{}}},"name":"es-to-primitive","time":{"modified":"2016-01-04T02:05:46.641Z","created":"2015-03-19T09:39:36.352Z","1.0.0":"2015-03-19T09:39:36.352Z","1.1.0":"2015-12-27T18:22:15.885Z","1.0.1":"2016-01-04T01:34:53.797Z","1.1.1":"2016-01-04T02:05:46.641Z"},"readmeFilename":"README.md","homepage":"https://github.com/ljharb/es-to-primitive#readme"}