{
  "manifest": {
    "name": "which-boxed-primitive",
    "version": "1.0.2",
    "description": "Which kind of boxed JS primitive is this?",
    "main": "index.js",
    "scripts": {
      "preversion": "auto-changelog",
      "prepublish": "not-in-publish || safe-publish-latest",
      "lint": "eslint --ext=js,mjs .",
      "pretest": "npm run lint",
      "tests-only": "nyc 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/inspect-js/which-boxed-primitive.git"
    },
    "keywords": [
      "boxed",
      "primitive",
      "object",
      "ecmascript",
      "javascript",
      "which"
    ],
    "author": {
      "name": "Jordan Harband",
      "email": "ljharb@gmail.com"
    },
    "funding": {
      "url": "https://github.com/sponsors/ljharb"
    },
    "license": "MIT",
    "bugs": {
      "url": "https://github.com/inspect-js/which-boxed-primitive/issues"
    },
    "homepage": "https://github.com/inspect-js/which-boxed-primitive#readme",
    "dependencies": {
      "is-bigint": "^1.0.1",
      "is-boolean-object": "^1.1.0",
      "is-number-object": "^1.0.4",
      "is-string": "^1.0.5",
      "is-symbol": "^1.0.3"
    },
    "devDependencies": {
      "@ljharb/eslint-config": "^17.3.0",
      "aud": "^1.1.3",
      "auto-changelog": "^2.2.1",
      "eslint": "^7.15.0",
      "has-symbols": "^1.0.1",
      "in-publish": "^2.0.1",
      "nyc": "^10.3.2",
      "object-inspect": "^1.9.0",
      "safe-publish-latest": "^1.1.4",
      "tape": "^5.0.1"
    },
    "auto-changelog": {
      "output": "CHANGELOG.md",
      "template": "keepachangelog",
      "unreleased": false,
      "commitLimit": false,
      "backfillLimit": false,
      "hideCredit": true
    },
    "_registry": "npm",
    "_loc": "/homez.1033/heliovt/.cache/yarn/v6/npm-which-boxed-primitive-1.0.2-13757bc89b209b049fe5d86430e21cf40a89a8e6-integrity/node_modules/which-boxed-primitive/package.json",
    "readmeFilename": "README.md",
    "readme": "# which-boxed-primitive <sup>[![Version Badge][2]][1]</sup>\n\n[![dependency status][5]][6]\n[![dev dependency status][7]][8]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][11]][1]\n\nWhich kind of boxed JS primitive is this? This module works cross-realm/iframe, does not depend on `instanceof` or mutable properties, and works despite ES6 Symbol.toStringTag.\n\n## Example\n\n```js\nvar whichBoxedPrimitive = require('which-boxed-primitive');\nvar assert = require('assert');\n\n// unboxed primitives return `null`\n// boxed primitives return the builtin constructor name\n\nassert.equal(whichBoxedPrimitive(undefined), null);\nassert.equal(whichBoxedPrimitive(null), null);\n\nassert.equal(whichBoxedPrimitive(false), null);\nassert.equal(whichBoxedPrimitive(true), null);\nassert.equal(whichBoxedPrimitive(new Boolean(false)), 'Boolean');\nassert.equal(whichBoxedPrimitive(new Boolean(true)), 'Boolean');\n\nassert.equal(whichBoxedPrimitive(42), null);\nassert.equal(whichBoxedPrimitive(NaN), null);\nassert.equal(whichBoxedPrimitive(Infinity), null);\nassert.equal(whichBoxedPrimitive(new Number(42)), 'Number');\nassert.equal(whichBoxedPrimitive(new Number(NaN)), 'Number');\nassert.equal(whichBoxedPrimitive(new Number(Infinity)), 'Number');\n\nassert.equal(whichBoxedPrimitive(''), null);\nassert.equal(whichBoxedPrimitive('foo'), null);\nassert.equal(whichBoxedPrimitive(new String('')), 'String');\nassert.equal(whichBoxedPrimitive(new String('foo')), 'String');\n\nassert.equal(whichBoxedPrimitive(Symbol()), null);\nassert.equal(whichBoxedPrimitive(Object(Symbol()), 'Symbol');\n\nassert.equal(whichBoxedPrimitive(42n), null);\nassert.equal(whichBoxedPrimitive(Object(42n), 'BigInt');\n\n// non-boxed-primitive objects return `undefined`\nassert.equal(whichBoxedPrimitive([]), undefined);\nassert.equal(whichBoxedPrimitive({}), undefined);\nassert.equal(whichBoxedPrimitive(/a/g), undefined);\nassert.equal(whichBoxedPrimitive(new RegExp('a', 'g')), undefined);\nassert.equal(whichBoxedPrimitive(new Date()), undefined);\nassert.equal(whichBoxedPrimitive(function () {}), undefined);\nassert.equal(whichBoxedPrimitive(function* () {}), undefined);\nassert.equal(whichBoxedPrimitive(x => x * x), undefined);\nassert.equal(whichBoxedPrimitive([]), undefined);\n\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[1]: https://npmjs.org/package/which-boxed-primitive\n[2]: https://versionbadg.es/inspect-js/which-boxed-primitive.svg\n[5]: https://david-dm.org/inspect-js/which-boxed-primitive.svg\n[6]: https://david-dm.org/inspect-js/which-boxed-primitive\n[7]: https://david-dm.org/inspect-js/which-boxed-primitive/dev-status.svg\n[8]: https://david-dm.org/inspect-js/which-boxed-primitive#info=devDependencies\n[11]: https://nodei.co/npm/which-boxed-primitive.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/which-boxed-primitive.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/which-boxed-primitive.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=which-boxed-primitive\n",
    "licenseText": "MIT License\n\nCopyright (c) 2019 Jordan Harband\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/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6",
    "type": "tarball",
    "reference": "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz",
    "hash": "13757bc89b209b049fe5d86430e21cf40a89a8e6",
    "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==",
    "registry": "npm",
    "packageName": "which-boxed-primitive",
    "cacheIntegrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg== sha1-E3V7yJsgmwSf5dhkMOIc9AqJqOY="
  },
  "registry": "npm",
  "hash": "13757bc89b209b049fe5d86430e21cf40a89a8e6"
}