{"_id":"unbox-primitive","_rev":"4-3e2e3ee50d233440698ee54e0548c8cb","name":"unbox-primitive","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"unbox-primitive","version":"1.0.0","keywords":["unbox","boxed","primitive","object","javascript","ecmascript"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","_id":"unbox-primitive@1.0.0","maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"homepage":"https://github.com/ljharb/unbox-primitive#readme","bugs":{"url":"https://github.com/ljharb/unbox-primitive/issues"},"dist":{"shasum":"eeacbc4affa28e9b3d36b5eaeccc50b3251b1d3f","tarball":"https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.0.tgz","fileCount":10,"integrity":"sha512-P/51NX+JXyxK/aigg1/ZgyccdAxm5K1+n8+tvqSntjOivPt19gvm1VC49RWYetsiub8WViUchdxl/KWHHB0kzA==","signatures":[{"sig":"MEUCIQCHufOJhH+oAUGIdXQq5q5YWSU6IsygvUWt4GAHvbdtxAIgdM2hTzQYMWPhkDegtb8IuRzw2NmDt7NTH1nxZfCnZ0A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16515,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdUCUuCRA9TVsSAnZWagAAgK8P/1qi8lxyWF1wNFXbgGEH\nHVzjMfZo1+Nffu6kB8qX6cqbJlaaNI34Y3tgnAeoWJSAvHHUM3nZsknnwk+4\nScK+OkFrbvD84Vd6WQ5NTyZ7lBJoERimvUfk142rG1XecTnFqmnNuO/vxPiQ\n9q9RzB3x1P0UlENqSXrFiZibZNAIvI0jpm/suvcLBSu0gExH31qTSJmejwE7\nQpJNnVBgMFUncD6vwG5/v/aDa4wDg/CHBrgng5yQMLgSdHK0Heiz6sR2iFHK\noql2l2JO+cbiX/Gh0DEWAM78JqPzWgSbUUOj0BzLfnSkYigxakNFjFfwdrL5\nxKtBgJ4vPA8+qm5KjBJVQUyrkbbv0WmlTYE2v5zZci6mnqiu5FWa9FYHXscn\ny2mNy+ChufKmZZY5mbwTMhp/t2KST5KD3oeh8idIbvd4NPbB52T48ehJvJ8N\naPHS875GD6fkYmkrp+b07IhBJ074WIkSL8Ht0N1h3x2AK8yPoSuuaErEeiQW\nv4rDzY/Y2IfcZ8skFMMFrNId1fOy9xDDcC7ALCEnqAqz0fKj9y0SNsy/Iu/k\neSK1JmQqdFweJIQdinulsfV0wEgUxUxLElBPZ5V/VR21A4bpBHqhGy0mDClE\nTx4Powr0CbOHB/bPP++c6w8H1cWb1LCyLfHJQNlokkRabVTMHY08Ss7TBgin\nNHwo\r\n=gjHQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"9ec42498e7b270d0704058c814a9fe8326c15bad","scripts":{"lint":"eslint .","test":"npm run tests-only","pretest":"npm run lint","posttest":"npx aud","prepublish":"not-in-publish || safe-publish-latest","preversion":"auto-changelog","tests-only":"node test"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"repository":{"url":"git+https://github.com/ljharb/unbox-primitive.git","type":"git"},"_npmVersion":"6.10.2","description":"Unbox a boxed JS primitive value.","directories":{},"_nodeVersion":"12.8.0","dependencies":{"has-bigints":"^1.0.0","has-symbols":"^1.0.0","function-bind":"^1.1.1","which-boxed-primitive":"^1.0.1"},"_hasShrinkwrap":false,"auto-changelog":{"template":"keepachangelog","commitLimit":false,"backfillLimit":false},"devDependencies":{"tape":"^4.11.0","eslint":"^6.1.0","for-each":"^0.3.3","object-is":"^1.0.1","in-publish":"^2.0.0","auto-changelog":"^1.14.1","object-inspect":"^1.6.0","safe-publish-latest":"^1.1.2","@ljharb/eslint-config":"^14.0.2"},"_npmOperationalInternal":{"tmp":"tmp/unbox-primitive_1.0.0_1565533486063_0.7587586899120613","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"unbox-primitive","version":"1.0.1","keywords":["unbox","boxed","primitive","object","javascript","ecmascript"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","_id":"unbox-primitive@1.0.1","maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"homepage":"https://github.com/ljharb/unbox-primitive#readme","bugs":{"url":"https://github.com/ljharb/unbox-primitive/issues"},"dist":{"shasum":"085e215625ec3162574dc8859abee78a59b14471","tarball":"https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.1.tgz","fileCount":11,"integrity":"sha512-tZU/3NqK3dA5gpE1KtyiJUrEB0lxnGkMFHptJ7q6ewdZ8s12QrODwNbhIJStmJkd1QDXa1NRA8aF2A1zk/Ypyw==","signatures":[{"sig":"MEUCICZsbyLu011EIkmSrw1JYf5thXgFdOt9UlOzSfEUt8N+AiEA9oIuOHD8AKeuiaC1YKWLAiJzTJls2GFKaVHF+A9aAV8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12776,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgXPqdCRA9TVsSAnZWagAAfWsP/05L/zEa52UwngxQHMbo\na/kWQ/MeZkIMQOJuehh3oIqr5LjNCd1ger0KyNl1FUjCLgS+Jh5eTvDYmvzc\nsJKBxZMtHo9anRMnc8CEsyS+DFtOK1nnModZk3GQvMFqYJq9pvrRw2FBjkCK\nXlAn8h+3xmaBa9IpN74xZCS/P/ceW0ZTZ5Tb4lgPGn6nMlVxcy5UjAsApMBP\nTHw+piOocmkS+vwEe3mVk5N/dddoOdq8+p0A7DbiZ/spgudSvnB4+ke4BTfq\nj1vyLnBpk5QvBY0KRM5jI0/HhOAFX+KVezPzPQt8AVA0l6NlAMdOiXkaKPbN\nnrHIAp71rtfmXSJISXJtpxOAOBon8+dF9TybMMeQv+XWBE9FgbIWcWurDQrf\nzF/ncGPwNFqj5EAjGaIOWRDT1QLVD+aZzW/upqWJeG8uSmAhhxfCCn5YfGaB\n1S4WbkdeVhx91Nfs93yKGem6cvqh8y8F1dfyykml7Emd/DND9dlOHs/wcVjy\nKfW2g4vU0lMYC8jXrGjqXc+3V9moSIRMiOSolETKQfnYS/MXftFwFV3Yj7le\nZDyrHkMDtDNO0CB4vNKDWx8fhUhrCtukDOsIpBvAJnRc6QXoTz3eG62OIoZ+\nKkHYosZ71FyKAuDJEjv7Q834i0LWKLxJ9DfLKMl7Z+Slpc6XOoBaXVfMLlWn\n/lSD\r\n=fAjm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","funding":{"url":"https://github.com/sponsors/ljharb"},"gitHead":"0f1db2a75868cca3f932ac174853edaf9eb22340","scripts":{"lint":"eslint .","test":"npm run tests-only","pretest":"npm run lint","version":"auto-changelog && git add CHANGELOG.md","posttest":"npx aud --production","prepublish":"not-in-publish || safe-publish-latest","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)\")\""},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"repository":{"url":"git+https://github.com/ljharb/unbox-primitive.git","type":"git"},"_npmVersion":"7.6.3","description":"Unbox a boxed JS primitive value.","directories":{},"_nodeVersion":"15.12.0","dependencies":{"has-bigints":"^1.0.1","has-symbols":"^1.0.2","function-bind":"^1.1.1","which-boxed-primitive":"^1.0.2"},"_hasShrinkwrap":false,"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","hideCredit":true,"unreleased":false,"commitLimit":false,"backfillLimit":false},"devDependencies":{"aud":"^1.1.4","nyc":"^10.3.2","tape":"^5.2.2","eslint":"^7.22.0","for-each":"^0.3.3","object-is":"^1.1.5","in-publish":"^2.0.1","auto-changelog":"^2.2.1","object-inspect":"^1.9.0","safe-publish-latest":"^1.1.4","@ljharb/eslint-config":"^17.5.1"},"_npmOperationalInternal":{"tmp":"tmp/unbox-primitive_1.0.1_1616706204520_0.5972217010628993","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"unbox-primitive","version":"1.0.2","keywords":["unbox","boxed","primitive","object","javascript","ecmascript"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","_id":"unbox-primitive@1.0.2","maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"homepage":"https://github.com/ljharb/unbox-primitive#readme","bugs":{"url":"https://github.com/ljharb/unbox-primitive/issues"},"dist":{"shasum":"29032021057d5e6cdbd08c5129c226dff8ed6f9e","tarball":"https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz","fileCount":10,"integrity":"sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==","signatures":[{"sig":"MEQCIGjrEAFV13K6mw4LRqdZwyphlIywETm5xx2ihAQS9OhuAiBncPgSbqu19OGP4Sz0eododzrPTPYC2QBLKvJkZ8YG/A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14851,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiZjMTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqEbg//bxHxA36JTBK/Il6yWFR/ZKFmJKB2EuZ1GshloNVRNFxgv/FS\r\ndzXa9gAEg938KHGfmRsfi+v12p65C4UyipYFnnNT1zPvvJTirJtMMbhXdbAu\r\nMJ7hrcYYo9rZuaBcVW7UN8imOGO65VzRKj/+OalF6HXRHky5EDgZHVQnkixX\r\nzT0sjFwklxe6hkxSG/xOt1TILnSISdfs/UGHCegKSm2lEvcfNolKc5FmeZ2r\r\n5prhIRICoovZuk6L9kskYN1oLPMfv2saE4Ox04TYKOA/vWJ1HB8rhdm119iz\r\nc/d4FuFzZMU3NqfjN8N74Y72LcoN8vN61FRcctW7G7ScmXasxL57q5jzwk5h\r\nnUZM+Ovlq5zjPPRtNXc+PPKtVSNxlPOjbwssdIS+0w1F0bX2ihtiD8Mz/SR7\r\nOPzHPiGmp5con8jEd8/PTylWJ4s5/K2dEn/mQVFOBn3ST4blS7ZDjcvBH9F9\r\nLuwnwyvnKXeAAVudzRIpS/yZlx59d7QdmWYCeqZHDi+4Mt64l4N5MKVSAock\r\n5K75ciG0gZTpzKLaViKB1Cx5jkd6kBIcsW/oFzdoaMxwDnEAm/I8G0UysK3t\r\nR5V52d4Mjtv+Kpej5VO+1kcHjJSw8Ts2FVI8tL6CxDGY3ZVY+jp3WVnr/moV\r\n6BNpGCuGPG4AJ0gKXGBbMGlL21nk7SSOyE8=\r\n=I9RJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","funding":{"url":"https://github.com/sponsors/ljharb"},"gitHead":"c93a80dea8d62105b3bd10e4f33440943737f5d9","scripts":{"lint":"eslint --ext=js,mjs .","test":"npm run tests-only","pretest":"npm run lint","version":"auto-changelog && git add CHANGELOG.md","posttest":"aud --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"},"repository":{"url":"git+https://github.com/ljharb/unbox-primitive.git","type":"git"},"_npmVersion":"8.3.1","description":"Unbox a boxed JS primitive value.","directories":{},"_nodeVersion":"18.0.0","dependencies":{"call-bind":"^1.0.2","has-bigints":"^1.0.2","has-symbols":"^1.0.3","which-boxed-primitive":"^1.0.2"},"_hasShrinkwrap":false,"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","hideCredit":true,"unreleased":false,"commitLimit":false,"backfillLimit":false},"devDependencies":{"aud":"^2.0.0","nyc":"^10.3.2","tape":"^5.5.3","eslint":"=8.8.0","for-each":"^0.3.3","object-is":"^1.1.5","in-publish":"^2.0.1","auto-changelog":"^2.4.0","object-inspect":"^1.12.0","safe-publish-latest":"^2.0.0","@ljharb/eslint-config":"^21.0.0"},"_npmOperationalInternal":{"tmp":"tmp/unbox-primitive_1.0.2_1650864915024_0.018437865653052832","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"unbox-primitive","version":"1.1.0","description":"Unbox a boxed JS primitive value.","main":"index.js","scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","lint":"eslint --ext=js,mjs .","postlint":"tsc && 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/ljharb/unbox-primitive.git"},"keywords":["unbox","boxed","primitive","object","javascript","ecmascript"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/unbox-primitive/issues"},"homepage":"https://github.com/ljharb/unbox-primitive#readme","devDependencies":{"@arethetypeswrong/cli":"^0.17.1","@ljharb/eslint-config":"^21.1.1","@ljharb/tsconfig":"^0.2.2","@types/for-each":"^0.3.3","@types/object-inspect":"^1.13.0","@types/object-is":"^1.1.0","@types/tape":"^5.7.0","auto-changelog":"^2.5.0","encoding":"^0.1.13","es-value-fixtures":"^1.5.0","eslint":"=8.8.0","for-each":"^0.3.3","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","object-inspect":"^1.13.3","object-is":"^1.1.6","safe-publish-latest":"^2.0.0","tape":"^5.9.0","typescript":"next"},"dependencies":{"call-bound":"^1.0.3","has-bigints":"^1.0.2","has-symbols":"^1.1.0","which-boxed-primitive":"^1.1.1"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"engines":{"node":">= 0.4"},"_id":"unbox-primitive@1.1.0","gitHead":"07ce64a97a0aa8d745e172f26f49eff863adae01","types":"./index.d.ts","_nodeVersion":"23.4.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==","shasum":"8d9d2c9edeea8460c7f35033a88867944934d1e2","tarball":"https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz","fileCount":12,"unpackedSize":18507,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSZ3dE5b2E5Th0Akf2ACF8dinAdgD1DcEhxAAGxmLIFQIgQzeihwu4oYxb18ZtL9yvdmy3LC/d3B+FhthRpPyc/nM="}]},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/unbox-primitive_1.1.0_1734331503530_0.6715002574996403"},"_hasShrinkwrap":false}},"time":{"created":"2019-08-11T14:24:46.062Z","modified":"2024-12-16T06:45:03.865Z","1.0.0":"2019-08-11T14:24:46.216Z","1.0.1":"2021-03-25T21:03:24.756Z","1.0.2":"2022-04-25T05:35:15.256Z","1.1.0":"2024-12-16T06:45:03.707Z"},"bugs":{"url":"https://github.com/ljharb/unbox-primitive/issues"},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","homepage":"https://github.com/ljharb/unbox-primitive#readme","keywords":["unbox","boxed","primitive","object","javascript","ecmascript"],"repository":{"type":"git","url":"git+https://github.com/ljharb/unbox-primitive.git"},"description":"Unbox a boxed JS primitive value.","maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"readme":"# unbox-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\nUnbox a boxed JS primitive value. 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 unboxPrimitive = require('unbox-primitive');\nvar assert = require('assert');\n\nassert.equal(unboxPrimitive(new Boolean(false)), false);\nassert.equal(unboxPrimitive(new String('f')), 'f');\nassert.equal(unboxPrimitive(new Number(42)), 42);\nconst s = Symbol();\nassert.equal(unboxPrimitive(Object(s)), s);\nassert.equal(unboxPrimitive(new BigInt(42)), 42n);\n\n// any primitive, or non-boxed-primitive object, will throw\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/unbox-primitive\n[npm-version-svg]: https://versionbadg.es/ljharb/unbox-primitive.svg\n[deps-svg]: https://david-dm.org/ljharb/unbox-primitive.svg\n[deps-url]: https://david-dm.org/ljharb/unbox-primitive\n[dev-deps-svg]: https://david-dm.org/ljharb/unbox-primitive/dev-status.svg\n[dev-deps-url]: https://david-dm.org/ljharb/unbox-primitive#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/unbox-primitive.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/unbox-primitive.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/unbox-primitive.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=unbox-primitive\n[codecov-image]: https://codecov.io/gh/ljharb/unbox-primitive/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/ljharb/unbox-primitive/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/unbox-primitive\n[actions-url]: https://github.com/ljharb/unbox-primitive/actions\n","readmeFilename":"README.md"}