{
  "manifest": {
    "name": "set-function-name",
    "version": "2.0.2",
    "description": "Set a function's name property",
    "main": "index.js",
    "types": "./index.d.ts",
    "scripts": {
      "prepack": "npmignore --auto --commentLines=autogenerated",
      "prepublish": "not-in-publish || npm run prepublishOnly",
      "prepublishOnly": "safe-publish-latest",
      "prelint": "evalmd README.md",
      "lint": "eslint --ext=js,mjs .",
      "postlint": "tsc -p .",
      "pretest": "npm run lint",
      "tests-only": "tape 'test/**/*.js'",
      "test": "npm run tests-only",
      "posttest": "aud --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/ljharb/set-function-name.git"
    },
    "keywords": [
      "set",
      "assign",
      "function",
      "name",
      "function.name"
    ],
    "author": {
      "name": "Jordan Harband",
      "email": "ljharb@gmail.com"
    },
    "license": "MIT",
    "bugs": {
      "url": "https://github.com/ljharb/set-function-name/issues"
    },
    "homepage": "https://github.com/ljharb/set-function-name#readme",
    "devDependencies": {
      "@ljharb/eslint-config": "^21.1.0",
      "@types/call-bind": "^1.0.5",
      "@types/define-properties": "^1.1.5",
      "@types/es-value-fixtures": "^1.4.4",
      "@types/for-each": "^0.3.3",
      "@types/function.prototype.name": "^1.1.3",
      "@types/functions-have-names": "^1.2.2",
      "@types/has-property-descriptors": "^1.0.3",
      "@types/make-arrow-function": "^1.2.2",
      "@types/make-async-function": "^1.0.2",
      "@types/make-async-generator-function": "^1.0.3",
      "@types/make-generator-function": "^2.0.3",
      "@types/object-inspect": "^1.8.4",
      "@types/tape": "^5.6.4",
      "aud": "^2.0.4",
      "auto-changelog": "^2.4.0",
      "es-value-fixtures": "^1.4.2",
      "eslint": "=8.8.0",
      "evalmd": "^0.0.19",
      "for-each": "^0.3.3",
      "function.prototype.name": "^1.1.6",
      "in-publish": "^2.0.1",
      "make-arrow-function": "^1.2.0",
      "make-async-function": "^1.0.0",
      "make-async-generator-function": "^1.0.0",
      "make-generator-function": "^2.0.0",
      "npmignore": "^0.3.1",
      "object-inspect": "^1.13.1",
      "safe-publish-latest": "^2.0.0",
      "tape": "^5.7.5",
      "typescript": "next"
    },
    "dependencies": {
      "define-data-property": "^1.1.4",
      "es-errors": "^1.3.0",
      "functions-have-names": "^1.2.3",
      "has-property-descriptors": "^1.0.2"
    },
    "engines": {
      "node": ">= 0.4"
    },
    "auto-changelog": {
      "output": "CHANGELOG.md",
      "template": "keepachangelog",
      "unreleased": false,
      "commitLimit": false,
      "backfillLimit": false,
      "hideCredit": true
    },
    "publishConfig": {
      "ignore": [
        ".github/workflows",
        "test",
        "!*.d.ts",
        "!*.d.ts.map"
      ]
    },
    "_registry": "npm",
    "_loc": "/homez.1033/heliovt/.cache/yarn/v6/npm-set-function-name-2.0.2-16a705c5a0dc2f5e638ca96d8a8cd4e1c2b90985-integrity/node_modules/set-function-name/package.json",
    "readmeFilename": "README.md",
    "readme": "# set-function-name <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\nSet a function’s name.\n\nArguments:\n - `fn`: the function\n - `name`: the new name\n - `loose`: Optional. If true, and the name fails to be set, do not throw. Default false.\n\nReturns `fn`.\n\n## Usage\n\n```javascript\nvar setFunctionName = require('set-function-name');\nvar assert = require('assert');\n\nconst obj = {\n    concise() {},\n    arrow: () => {},\n    named: function named() {},\n    anon: function () {},\n};\nassert.equal(obj.concise.name, 'concise');\nassert.equal(obj.arrow.name, 'arrow');\nassert.equal(obj.named.name, 'named');\nassert.equal(obj.anon.name, 'anon');\n\nassert.equal(setFunctionName(obj.concise, 'brief'), obj.concise);\nassert.equal(setFunctionName(obj.arrow, 'pointy'), obj.arrow);\nassert.equal(setFunctionName(obj.named, ''), obj.named);\nassert.equal(setFunctionName(obj.anon, 'anonymous'), obj.anon);\n\nassert.equal(obj.concise.name, 'brief');\nassert.equal(obj.arrow.name, 'pointy');\nassert.equal(obj.named.name, '');\nassert.equal(obj.anon.name, 'anonymous');\n```\n\n[package-url]: https://npmjs.org/package/set-function-name\n[npm-version-svg]: https://versionbadg.es/ljharb/set-function-name.svg\n[deps-svg]: https://david-dm.org/ljharb/set-function-name.svg\n[deps-url]: https://david-dm.org/ljharb/set-function-name\n[dev-deps-svg]: https://david-dm.org/ljharb/set-function-name/dev-status.svg\n[dev-deps-url]: https://david-dm.org/ljharb/set-function-name#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/set-function-name.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/set-function-name.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/set-function-name.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=set-function-name\n[codecov-image]: https://codecov.io/gh/ljharb/set-function-name/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/ljharb/set-function-name/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/set-function-name\n[actions-url]: https://github.com/ljharb/set-function-name/actions\n",
    "licenseText": "MIT License\n\nCopyright (c) Jordan Harband and contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  "artifacts": [],
  "remote": {
    "resolved": "https://registry.yarnpkg.com/set-function-name/-/set-function-name-2.0.2.tgz#16a705c5a0dc2f5e638ca96d8a8cd4e1c2b90985",
    "type": "tarball",
    "reference": "https://registry.yarnpkg.com/set-function-name/-/set-function-name-2.0.2.tgz",
    "hash": "16a705c5a0dc2f5e638ca96d8a8cd4e1c2b90985",
    "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==",
    "registry": "npm",
    "packageName": "set-function-name",
    "cacheIntegrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ== sha1-FqcFxaDcL15jjKltiozU4cK5CYU="
  },
  "registry": "npm",
  "hash": "16a705c5a0dc2f5e638ca96d8a8cd4e1c2b90985"
}