{"name":"es-to-primitive","version":"1.3.3","keywords":["primitive","abstract","ecmascript","es5","es6","es2015","toPrimitive","coerce","type","object","string","number","boolean","symbol","null","undefined"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","_id":"es-to-primitive@1.3.3","maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"homepage":"https://github.com/ljharb/es-to-primitive#readme","bugs":{"url":"https://github.com/ljharb/es-to-primitive/issues"},"dist":{"shasum":"15c4a79558c58e1320436dde1aad728b8ac8b912","tarball":"http://registry-npm.ywwl.com/es-to-primitive/download/es-to-primitive-1.3.3.tgz","fileCount":21,"integrity":"sha512-3OJmZ3m4VNhTWEfn/bPv7yoSd/7Kx0MYdm27o7SqgS45l03O4purW3zO4B/4JroAWHluvmQaXqrPXFtT4IKYEw==","signatures":[{"sig":"MEUCIQCi7inJmnwx7UZCPtqjm9TltT+/EacZE19BFSzEYpsF2gIgcTK68a3siH9emmMBQTlV0CjiAHL0q/OJ510v1gQ8Q/Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":46658,"size":10535,"noattachment":false,"key":"/es-to-primitive/-/es-to-primitive-1.3.3.tgz"},"main":"index.js","types":"./index.d.ts","engines":{"node":">= 0.4"},"funding":{"url":"https://github.com/sponsors/ljharb"},"gitHead":"ef65246d6076a3e772b44399a04dd27e46aa52ec","scripts":{"lint":"eslint .","test":"npm run tests-only","prepack":"npmignore --auto --commentLines=autogenerated","pretest":"npm run lint","version":"auto-changelog && git add CHANGELOG.md","postlint":"tsc && attw -P","posttest":"npx npm@'>=10.2' audit --production","prepublish":"not-in-publish || npm run prepublishOnly","tests-only":"nyc tape 'test/**/*.js'","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"","prepublishOnly":"safe-publish-latest"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com","approver":{"name":"ljharb","email":"ljharb@gmail.com"}},"testling":{"files":"test/index.js"},"repository":{"url":"git://github.com/ljharb/es-to-primitive.git","type":"git"},"_npmVersion":"11.16.0","description":"ECMAScript “ToPrimitive” algorithm. Provides ES5 and ES2015 versions.","directories":{},"_nodeVersion":"26.3.0","dependencies":{"es-errors":"^1.3.0","is-symbol":"^1.1.1","is-callable":"^1.2.7","is-date-object":"^1.1.0","es-abstract-get":"^1.0.0"},"publishConfig":{"ignore":[".github/workflows"]},"_hasShrinkwrap":false,"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","hideCredit":true,"unreleased":false,"commitLimit":false,"backfillLimit":false,"startingVersion":"1.2.2"},"devDependencies":{"nyc":"^10.3.2","jiti":"^0.0.0","tape":"^5.10.2","eslint":"^10.5.0","for-each":"^0.3.5","npmignore":"^0.3.5","object-is":"^1.1.6","typescript":"next","@types/node":"^12.20.55","auto-changelog":"^2.6.0","object-inspect":"^1.13.4","@ljharb/tsconfig":"^0.3.2","@types/object-is":"^1.1.0","es-value-fixtures":"^1.7.1","@types/is-callable":"^1.1.2","safe-publish-latest":"^2.0.0","@arethetypeswrong/cli":"^0.18.4","@ljharb/eslint-config":"^22.2.3","@types/object-inspect":"^1.13.0","function.prototype.name":"^1.2.0"},"_npmOperationalInternal":{"tmp":"tmp/es-to-primitive_1.3.3_1782417546649_0.9941206659740349","host":"s3://npm-registry-packages-npm-production"},"readme":"# es-to-primitive <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-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]: https://versionbadg.es/ljharb/es-to-primitive.svg\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]: https://img.shields.io/npm/l/es-to-primitive.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/es-to-primitive.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=es-to-primitive\n[codecov-image]: https://codecov.io/gh/ljharb/es-to-primitive/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/ljharb/es-to-primitive/\n[actions-image]: https://img.shields.io/github/check-runs/ljharb/es-to-primitive/main\n[actions-url]: https://github.com/ljharb/es-to-primitive/actions\n","publish_time":1782417546728,"_cnpm_publish_time":1782417546728,"dist-tags":{"latest":"1.3.4"}}