{ "_id": "has-symbols", "_rev": "4-0d4b2f4cf2ae3a3f6186dc73fed8b397", "name": "has-symbols", "description": "Determine if the JS environment has Symbol support. Supports spec, or shams.", "dist-tags": { "latest": "1.0.1" }, "versions": { "1.0.0": { "name": "has-symbols", "version": "1.0.0", "author": { "name": "Jordan Harband", "email": "ljharb@gmail.com", "url": "http://ljharb.codes" }, "contributors": [ { "name": "Jordan Harband", "email": "ljharb@gmail.com", "url": "http://ljharb.codes" } ], "description": "Determine if the JS environment has Symbol support. Supports spec, or shams.", "license": "MIT", "main": "index.js", "scripts": { "prepublish": "safe-publish-latest", "pretest": "npm run --silent lint", "test": "npm run --silent tests-only", "posttest": "npm run --silent security", "tests-only": "npm run --silent test:stock && npm run --silent test:staging && npm run --silent test:shams", "test:stock": "node test", "test:staging": "node --harmony --es-staging test", "test:shams": "npm run --silent test:shams:getownpropertysymbols && npm run --silent test:shams:corejs", "test:shams:corejs": "node test/shams/core-js.js", "test:shams:getownpropertysymbols": "node test/shams/get-own-property-symbols.js", "lint": "eslint *.js", "security": "nsp check" }, "repository": { "type": "git", "url": "git://github.com/ljharb/has-symbols.git" }, "keywords": [ "Symbol", "symbols", "typeof", "sham", "polyfill", "native", "core-js", "ES6" ], "dependencies": {}, "devDependencies": { "tape": "^4.6.0", "nsp": "^2.6.1", "safe-publish-latest": "^1.0.1", "eslint": "^3.5.0", "@ljharb/eslint-config": "^8.0.0", "get-own-property-symbols": "^0.9.2", "core-js": "^2.4.1" }, "testling": { "files": "test/index.js", "browsers": [ "iexplore/6.0..latest", "firefox/3.0..6.0", "firefox/15.0..latest", "firefox/nightly", "chrome/4.0..10.0", "chrome/20.0..latest", "chrome/canary", "opera/10.0..latest", "opera/next", "safari/4.0..latest", "ipad/6.0..latest", "iphone/6.0..latest", "android-browser/4.2" ] }, "engines": { "node": ">= 0.4" }, "gitHead": "e4a5e7028c87d509902ff292f4da3ea45c7c50cf", "bugs": { "url": "https://github.com/ljharb/has-symbols/issues" }, "homepage": "https://github.com/ljharb/has-symbols#readme", "_id": "has-symbols@1.0.0", "_shasum": "ba1a8f1af2a0fc39650f5c850367704122063b44", "_from": ".", "_npmVersion": "3.10.3", "_nodeVersion": "6.6.0", "_npmUser": { "name": "ljharb", "email": "ljharb@gmail.com" }, "dist": { "shasum": "ba1a8f1af2a0fc39650f5c850367704122063b44", "tarball": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz" }, "maintainers": [ { "name": "ljharb", "email": "ljharb@gmail.com" } ], "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/has-symbols-1.0.0.tgz_1474328796481_0.2780582248233259" }, "directories": {} }, "1.0.1": { "name": "has-symbols", "version": "1.0.1", "author": { "name": "Jordan Harband", "email": "ljharb@gmail.com", "url": "http://ljharb.codes" }, "funding": { "url": "https://github.com/sponsors/ljharb" }, "contributors": [ { "name": "Jordan Harband", "email": "ljharb@gmail.com", "url": "http://ljharb.codes" } ], "description": "Determine if the JS environment has Symbol support. Supports spec, or shams.", "license": "MIT", "main": "index.js", "scripts": { "prepublish": "safe-publish-latest", "pretest": "npm run --silent lint", "test": "npm run --silent tests-only", "posttest": "npx aud", "tests-only": "npm run --silent test:stock && npm run --silent test:staging && npm run --silent test:shams", "test:stock": "node test", "test:staging": "node --harmony --es-staging test", "test:shams": "npm run --silent test:shams:getownpropertysymbols && npm run --silent test:shams:corejs", "test:shams:corejs": "node test/shams/core-js.js", "test:shams:getownpropertysymbols": "node test/shams/get-own-property-symbols.js", "lint": "eslint *.js", "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://github.com/ljharb/has-symbols.git" }, "keywords": [ "Symbol", "symbols", "typeof", "sham", "polyfill", "native", "core-js", "ES6" ], "dependencies": {}, "devDependencies": { "@ljharb/eslint-config": "^15.0.1", "auto-changelog": "^1.16.2", "core-js": "^2.6.10", "eslint": "^6.6.0", "get-own-property-symbols": "^0.9.4", "safe-publish-latest": "^1.1.4", "tape": "^4.11.0" }, "testling": { "files": "test/index.js", "browsers": [ "iexplore/6.0..latest", "firefox/3.0..6.0", "firefox/15.0..latest", "firefox/nightly", "chrome/4.0..10.0", "chrome/20.0..latest", "chrome/canary", "opera/10.0..latest", "opera/next", "safari/4.0..latest", "ipad/6.0..latest", "iphone/6.0..latest", "android-browser/4.2" ] }, "engines": { "node": ">= 0.4" }, "auto-changelog": { "output": "CHANGELOG.md", "template": "keepachangelog", "unreleased": false, "commitLimit": false, "backfillLimit": false }, "gitHead": "132fe9ce5c2e443e0570606d4568a242eb86b5f5", "bugs": { "url": "https://github.com/ljharb/has-symbols/issues" }, "homepage": "https://github.com/ljharb/has-symbols#readme", "_id": "has-symbols@1.0.1", "_nodeVersion": "13.1.0", "_npmVersion": "6.12.1", "dist": { "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==", "shasum": "9f5214758a44196c406d9bd76cebf81ec2dd31e8", "tarball": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", "fileCount": 14, "unpackedSize": 15474, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd0I28CRA9TVsSAnZWagAAt2AP/jan/+oerqF7TJJ1/7C0\nDib5YuePKj9dBimLNNxyNbDCo9+XGPPXoDd5OuGVQ8hePAe0pFxsenbtyT+Y\n+empPCZMrgUJfP7Umo6FYPE7EChp7ES7pPua2oeoKzMhK3xH+sBXj9MQ60Al\nunwIhq1k0idyeHT/9iJegP+wGF5pDe/EZUVbzt9r6JU4WhCNopdta+BZwIRP\nmE/NCdPjZ2jHbjYVJlT7b7uFrA4KXtRXtaJKhy97biek3xfgP4WLKvRaPTKo\nlTXtw/UXk8L42RYfJFlIJ2nyLeorwS6QObZPi9tB8BmIogvrSjthvcVL6DSN\nWJTjxpu43zbRS6mHK5nBAnXcshB/mvM9E8hTxrhG2jfSwAR3RexMLsOqgEsH\nTUTxRdB4Zox0nUD7rSahulvEtjl0bCRwo+oeuNfNDgf34sAjhIsaBMzH1rQY\nuTI8DKB4s1wKbth7YWUvacPay0+vvIbJnq4AMjoIDXezAKdDVIG6zB5rt5vN\nPxaAnRkB2htFP8MEHbqAvhk2ibqGdQvdVW2QPeTjDc7bXeymiXI93nrZyiw6\nq5alXDWN8ubB8A9A7HvKa+XU3dsOoYW/Ypx/h/ca17m0Gc0LwfJ2o0lC4sLQ\n3akrlFDjuBdlt2tWWzCRD5e7av8jJZ5C5ZKBeRkL2Xod4iyMFAD5wtefsXvR\nELxD\r\n=shCA\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "ljharb@gmail.com", "name": "ljharb" } ], "_npmUser": { "name": "ljharb", "email": "ljharb@gmail.com" }, "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/has-symbols_1.0.1_1573948860346_0.7408930604026625" }, "_hasShrinkwrap": false } }, "readme": "# has-symbols [![Version Badge][2]][1]\n\n[![Build Status][3]][4]\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\nDetermine if the JS environment has Symbol support. Supports spec, or shams.\n\n## Example\n\n```js\nvar hasSymbols = require('has-symbols');\n\nhasSymbols() === true; // if the environment has native Symbol support. Not polyfillable, not forgeable.\n\nvar hasSymbolsKinda = require('has-symbols/shams');\nhasSymbolsKinda() === true; // if the environment has a Symbol sham that mostly follows the spec.\n```\n\n## Supported Symbol shams\n - get-own-property-symbols [npm](https://www.npmjs.com/package/get-own-property-symbols) | [github](https://github.com/WebReflection/get-own-property-symbols)\n - core-js [npm](https://www.npmjs.com/package/core-js) | [github](https://github.com/zloirock/core-js)\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[1]: https://npmjs.org/package/has-symbols\n[2]: http://versionbadg.es/ljharb/has-symbols.svg\n[3]: https://travis-ci.org/ljharb/has-symbols.svg\n[4]: https://travis-ci.org/ljharb/has-symbols\n[5]: https://david-dm.org/ljharb/has-symbols.svg\n[6]: https://david-dm.org/ljharb/has-symbols\n[7]: https://david-dm.org/ljharb/has-symbols/dev-status.svg\n[8]: https://david-dm.org/ljharb/has-symbols#info=devDependencies\n[9]: https://ci.testling.com/ljharb/has-symbols.png\n[10]: https://ci.testling.com/ljharb/has-symbols\n[11]: https://nodei.co/npm/has-symbols.png?downloads=true&stars=true\n[license-image]: http://img.shields.io/npm/l/has-symbols.svg\n[license-url]: LICENSE\n[downloads-image]: http://img.shields.io/npm/dm/has-symbols.svg\n[downloads-url]: http://npm-stat.com/charts.html?package=has-symbols\n", "maintainers": [ { "email": "ljharb@gmail.com", "name": "ljharb" } ], "time": { "modified": "2019-11-17T00:01:02.829Z", "created": "2016-09-19T23:46:36.740Z", "1.0.0": "2016-09-19T23:46:36.740Z", "1.0.1": "2019-11-17T00:01:00.460Z" }, "homepage": "https://github.com/ljharb/has-symbols#readme", "keywords": [ "Symbol", "symbols", "typeof", "sham", "polyfill", "native", "core-js", "ES6" ], "repository": { "type": "git", "url": "git://github.com/ljharb/has-symbols.git" }, "contributors": [ { "name": "Jordan Harband", "email": "ljharb@gmail.com", "url": "http://ljharb.codes" } ], "author": { "name": "Jordan Harband", "email": "ljharb@gmail.com", "url": "http://ljharb.codes" }, "bugs": { "url": "https://github.com/ljharb/has-symbols/issues" }, "license": "MIT", "readmeFilename": "README.md" }