{"name":"es-set-tostringtag","version":"2.1.0","description":"A helper to optimistically set Symbol.toStringTag, when possible.","main":"index.js","exports":{".":"./index.js","./package.json":"./package.json"},"sideEffects":false,"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","prelint":"evalmd README.md","lint":"eslint --ext=js,mjs .","postlint":"tsc -p . && attw -P","pretest":"npm run lint","tests-only":"nyc tape 'test/**/*.js'","test":"npm run tests-only","posttest":"npx npm@\">= 10.2\" audit --production","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"repository":{"type":"git","url":"git+https://github.com/es-shims/es-set-tostringtag.git"},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/es-shims/es-set-tostringtag/issues"},"homepage":"https://github.com/es-shims/es-set-tostringtag#readme","devDependencies":{"@arethetypeswrong/cli":"^0.17.2","@ljharb/eslint-config":"^21.1.1","@ljharb/tsconfig":"^0.2.3","@types/get-intrinsic":"^1.2.3","@types/has-symbols":"^1.0.2","@types/tape":"^5.8.0","auto-changelog":"^2.5.0","encoding":"^0.1.13","eslint":"=8.8.0","evalmd":"^0.0.19","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.9.0","typescript":"next"},"dependencies":{"es-errors":"^1.3.0","get-intrinsic":"^1.2.6","has-tostringtag":"^1.0.2","hasown":"^2.0.2"},"engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"testling":{"files":"./test/index.js"},"publishConfig":{"ignore":[".github/workflows"]},"_id":"es-set-tostringtag@2.1.0","gitHead":"90e506fbfe24630e6fe3871639000d2f0ba09d6f","types":"./index.d.ts","_nodeVersion":"23.5.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==","shasum":"f31dbbe0c183b00a6d26eb6325c810c0fd18bd4d","tarball":"http://registry-npm.ywwl.com/es-set-tostringtag/download/es-set-tostringtag-2.1.0.tgz","fileCount":10,"unpackedSize":14544,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRmqFa+JTxgKAgz1nksHw8sQblfewFR7P48hhVyG3jqgIhALdBnoT0nSf0xq5iqlWTccHPPypdv4/I9vTwxHEQpOLe"}],"size":5583,"noattachment":false,"key":"/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/es-set-tostringtag_2.1.0_1735793054233_0.4455930306441267"},"_hasShrinkwrap":false,"readme":"# es-set-tostringtag <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\nA helper to optimistically set Symbol.toStringTag, when possible.\n\n## Example\nMost common usage:\n```js\nvar assert = require('assert');\nvar setToStringTag = require('es-set-tostringtag');\n\nvar obj = {};\n\nassert.equal(Object.prototype.toString.call(obj), '[object Object]');\n\nsetToStringTag(obj, 'tagged!');\n\nassert.equal(Object.prototype.toString.call(obj), '[object tagged!]');\n```\n\n## Options\nAn optional options argument can be provided as the third argument. The available options are:\n\n### `force`\nIf the `force` option is set to `true`, the toStringTag will be set even if it is already set.\n\n### `nonConfigurable`\nIf the `nonConfigurable` option is set to `true`, the toStringTag will be defined as non-configurable when possible.\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.com/package/es-set-tostringtag\n[npm-version-svg]: https://versionbadg.es/es-shims/es-set-tostringtag.svg\n[deps-svg]: https://david-dm.org/es-shims/es-set-tostringtag.svg\n[deps-url]: https://david-dm.org/es-shims/es-set-tostringtag\n[dev-deps-svg]: https://david-dm.org/es-shims/es-set-tostringtag/dev-status.svg\n[dev-deps-url]: https://david-dm.org/es-shims/es-set-tostringtag#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/es-set-tostringtag.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/es-set-tostringtag.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/es-set-tostringtag.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=es-set-tostringtag\n[codecov-image]: https://codecov.io/gh/es-shims/es-set-tostringtag/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/es-shims/es-set-tostringtag/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/es-set-tostringtag\n[actions-url]: https://github.com/es-shims/es-set-tostringtag/actions\n","publish_time":1735793054435,"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"_cnpm_publish_time":1735793054435,"dist-tags":{"latest":"2.1.0"}}