{ "_id": "es-to-primitive", "_rev": "7-08ca29119f98b4f3c669754adee606d3", "name": "es-to-primitive", "description": "ECMAScript “ToPrimitive” algorithm. Provides ES5 and ES2015 versions.", "dist-tags": { "latest": "1.2.1" }, "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": "https://registry.npmjs.org/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": "https://registry.npmjs.org/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": "https://registry.npmjs.org/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": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.1.1.tgz" }, "maintainers": [ { "name": "ljharb", "email": "ljharb@gmail.com" } ], "directories": {} }, "1.2.0": { "name": "es-to-primitive", "version": "1.2.0", "author": { "name": "Jordan Harband" }, "description": "ECMAScript “ToPrimitive” algorithm. Provides ES5 and ES2015 versions.", "license": "MIT", "main": "index.js", "scripts": { "pretest": "npm run --silent lint", "test": "npm run --silent tests-only", "posttest": "npm run --silent security", "tests-only": "node --es-staging test", "coverage": "covert test/*.js", "coverage-quiet": "covert test/*.js --quiet", "lint": "npm run --silent jscs && npm run --silent 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", "es2015", "toPrimitive", "coerce", "type", "object", "string", "number", "boolean", "symbol", "null", "undefined" ], "dependencies": { "is-callable": "^1.1.4", "is-date-object": "^1.0.1", "is-symbol": "^1.0.2" }, "devDependencies": { "@ljharb/eslint-config": "^13.0.0", "covert": "^1.1.0", "eslint": "^5.6.0", "foreach": "^2.0.5", "function.prototype.name": "^1.1.0", "jscs": "^3.0.7", "nsp": "^3.2.1", "object-inspect": "^1.6.0", "object-is": "^1.0.1", "replace": "^1.0.0", "semver": "^5.5.1", "tape": "^4.9.1" }, "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": "2a4bca5456480149ca8cdc8e4529b0fa18390aa7", "bugs": { "url": "https://github.com/ljharb/es-to-primitive/issues" }, "homepage": "https://github.com/ljharb/es-to-primitive#readme", "_id": "es-to-primitive@1.2.0", "_npmVersion": "6.4.1", "_nodeVersion": "10.11.0", "_npmUser": { "name": "ljharb", "email": "ljharb@gmail.com" }, "dist": { "integrity": "sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==", "shasum": "edf72478033456e8dda8ef09e00ad9650707f377", "tarball": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.0.tgz", "fileCount": 19, "unpackedSize": 49837, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbrRkXCRA9TVsSAnZWagAA5c4P/RTY16+RUYKUlzT4kvQT\n23RsVm+f1G09ybN0MrtqT8m1IAHUIA5jsrNuVoWuQ5IqAbNIAU3GeorjEODm\nApRNQolY+PupqlQEsbdn16XJ2dr+kAwodB1LJHPhHDa1idgBesA9YxFfanip\nOy+5l9Qa2DRfpy/KFhupCooBTa+RQ4dm/bTndppG+yaMcVitWwXsbhT/i6z9\nE4e4m5YlTAbWDxZ+FwOTK8K75Tn2LOqy9WFjNiWz/UUeaPxIFlMb8RO/3yy5\nRuqvSpW04S9PM9g27zbKePdO2wNyDR+S/1cGgbqoQF6JP72tBSGCYhllwpYM\nbMfAi8f0b4RAdk9BPJ/8cLogS281IfIN7AKI5vOoVWh8veUAWSShmjF8o89x\njxmVpKGEbnLPkB2pQZP+CKMzo+124y+jP4ns7GMaftkJ6zLcXUC5C4vUbj6h\nm5rGzqBHYfaO/IJ3VCJ53hj+qblGSJZhiZzr8mrd0W6lNHb13+w2XqDuA3uP\nk3ralDjMJzcFEcJ/TLg06Ny5hrSu1EOtQ6hIS+ylGiLUAdU4gX45WHZoJOxj\nh7k8LAnRVxzA//WJX0h0Erm6PKAyhcTbmjVJuBJLmqrQVvhm93K1hTIJ8Bty\nXj4gOGlAMYkV8wJc/fXT1iUkgzxSgstLlL7eYVtpinG7tV84MiuCdq6hOaUs\ncfUE\r\n=+Ljt\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "name": "ljharb", "email": "ljharb@gmail.com" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/es-to-primitive_1.2.0_1538070806741_0.6483493775372577" }, "_hasShrinkwrap": false }, "1.2.1": { "name": "es-to-primitive", "version": "1.2.1", "author": { "name": "Jordan Harband", "email": "ljharb@gmail.com" }, "funding": { "url": "https://github.com/sponsors/ljharb" }, "description": "ECMAScript “ToPrimitive” algorithm. Provides ES5 and ES2015 versions.", "license": "MIT", "main": "index.js", "scripts": { "pretest": "npm run --silent lint", "test": "npm run --silent tests-only", "posttest": "npx aud", "tests-only": "node --es-staging test", "coverage": "covert test/*.js", "coverage-quiet": "covert test/*.js --quiet", "lint": "eslint ." }, "repository": { "type": "git", "url": "git://github.com/ljharb/es-to-primitive.git" }, "keywords": [ "primitive", "abstract", "ecmascript", "es5", "es6", "es2015", "toPrimitive", "coerce", "type", "object", "string", "number", "boolean", "symbol", "null", "undefined" ], "dependencies": { "is-callable": "^1.1.4", "is-date-object": "^1.0.1", "is-symbol": "^1.0.2" }, "devDependencies": { "@ljharb/eslint-config": "^15.0.0", "covert": "^1.1.1", "eslint": "^6.6.0", "foreach": "^2.0.5", "function.prototype.name": "^1.1.1", "has-symbols": "^1.0.0", "object-inspect": "^1.6.0", "object-is": "^1.0.1", "replace": "^1.1.1", "semver": "^6.3.0", "tape": "^4.11.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": "fc864b766689e70707a0b86a136b0ec0021e4d17", "bugs": { "url": "https://github.com/ljharb/es-to-primitive/issues" }, "homepage": "https://github.com/ljharb/es-to-primitive#readme", "_id": "es-to-primitive@1.2.1", "_nodeVersion": "13.1.0", "_npmVersion": "6.12.1", "dist": { "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", "shasum": "e55cd4c9cdc188bcefb03b366c736323fc5c898a", "tarball": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", "fileCount": 17, "unpackedSize": 40434, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxlxmCRA9TVsSAnZWagAAIToP/j5vl14LcQtl8RDceS3s\nuUrfQ132xJjFcft3lSesyrTA/ByxuK8cJQNGZFxX5nl63iaFmoeXfLo2TNkj\nDjfH9Sal1slECqw/kfk0ZRKJA2HMdUcIjPHomSx2mAIomu6I6ObFVOUIBzXY\n0JpzjZtxWZjD7I0YKQgxnseBxoo23HHPzx/m0mT6itN/6U+rxSvO7+cuSPQ6\nFtjfJK4uMZMuoK27VReYAJ37q1p6EzyVn5YJYjM5773/oAbbZKQPE5y70xi9\n0tXIH7+1rDXHpQoPm/cLD/651UirJN5B7VF8+uZN0QgCD0fla8/fVyhqQ5QN\nYgV/idaNIr2Ypdp4DWkAA+m/Un3/Wf4dfqwmmgmXDmgHFMyvk7Ja58PRv04N\n6H0BEer1b0TROLiP0eE0C0cb1Mhnaw0IFJgnWMZyho+U03ZLPGWPb9Y92Irx\nuM5Ly3I8xLZ3tP7bMIIdO/t6ORy1Mga2XWl0rqVki4pAO2p6DK9kYeezCAkg\nIW1fwruKyeuPSDRkTTY11C4SBntYf7qVa1JHTsrgzlles6TIyiSLeYFVjJVE\nVBZ2PYtlT6+B5OAPiYNTTLILCdURczv4wdjXavhd2daRmn5AduUdjKkMtNt8\nc1zAph1/9DVCDqL+fVIhdpmLpjEMUs3N4eWRIiUYLhlhcNyGSETzBm/LVgMC\nyUpr\r\n=aPzi\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "name": "ljharb", "email": "ljharb@gmail.com" } ], "_npmUser": { "name": "ljharb", "email": "ljharb@gmail.com" }, "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/es-to-primitive_1.2.1_1573280870337_0.8527363876404559" }, "_hasShrinkwrap": false } }, "readme": "# es-to-primitive [![Version Badge][npm-version-svg]][package-url]\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\nECMAScript “ToPrimitive” algorithm. Provides ES5 and ES2015 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`/`es2015` 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[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", "maintainers": [ { "name": "ljharb", "email": "ljharb@gmail.com" } ], "time": { "modified": "2019-11-09T06:27:52.637Z", "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", "1.2.0": "2018-09-27T17:53:26.933Z", "1.2.1": "2019-11-09T06:27:50.488Z" }, "homepage": "https://github.com/ljharb/es-to-primitive#readme", "keywords": [ "primitive", "abstract", "ecmascript", "es5", "es6", "es2015", "toPrimitive", "coerce", "type", "object", "string", "number", "boolean", "symbol", "null", "undefined" ], "repository": { "type": "git", "url": "git://github.com/ljharb/es-to-primitive.git" }, "author": { "name": "Jordan Harband", "email": "ljharb@gmail.com" }, "bugs": { "url": "https://github.com/ljharb/es-to-primitive/issues" }, "license": "MIT", "readmeFilename": "README.md" }