{"name":"string.prototype.split","version":"1.0.4","description":"An ES spec-compliant `String.prototype.split` shim/polyfill/replacement that works as far down as ES3","main":"index.js","exports":{".":[{"import":"./index.mjs","require":"./index.js","default":"./index.js"},"./index.js"],"./polyfill":[{"import":"./polyfill.mjs","require":"./polyfill.js","default":"./polyfill.js"},"./polyfill.js"],"./implementation":[{"import":"./implementation.mjs","require":"./implementation.js","default":"./implementation.js"},"./implementation.js"],"./shim":[{"import":"./shim.mjs","require":"./shim.js","default":"./shim.js"},"./shim.js"],"./package.json":"./package.json"},"scripts":{"prepublish":"safe-publish-latest","lint":"eslint --ext=js,mjs .","postlint":"es-shim-api --bound","pretest":"npm run lint","tests-only":"nyc tape 'test/*.js'","tests-esm":"nyc node test/index.mjs","test":"npm run tests-only && npm run tests-esm","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/es-shims/String.prototype.split.git"},"keywords":["es-shim API","ESnext","shim","polyfill"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/es-shims/String.prototype.split/issues"},"homepage":"https://github.com/es-shims/String.prototype.split#readme","dependencies":{"call-bind":"^1.0.2","define-properties":"^1.1.3","es-abstract":"^1.18.0-next.2","get-intrinsic":"^1.1.1","is-regex":"^1.1.2","regexp.prototype.flags":"^1.3.1"},"devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^17.5.1","aud":"^1.1.4","auto-changelog":"^2.2.1","eslint":"^7.20.0","functions-have-names":"^1.2.2","has-strict-mode":"^1.0.1","nyc":"^10.3.2","safe-publish-latest":"^1.1.4","tape":"^5.2.0"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"testling":{"files":"test/index.js"},"gitHead":"0a430efa8e92a5f237ed26317de807ef67c688c0","_id":"string.prototype.split@1.0.4","_nodeVersion":"15.8.0","_npmVersion":"7.5.4","dist":{"integrity":"sha512-6pNnnjNUaZ6BZVQXZOb5LW+jqTYdnmgGKirc5A+E7CBDlgNpGewZkj+0DPCLMk/0HURHeg4gac3YW1Xz93Cx4A==","shasum":"f00e377fd0346e9aaf2da89e0a6ba2d5e21b24e1","tarball":"http://registry-npm.ywwl.com/string.prototype.split/download/string.prototype.split-1.0.4.tgz","fileCount":22,"unpackedSize":26394,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgMtkpCRA9TVsSAnZWagAAA1oP+wX4VsqPTEm9+zSn38y9\n6qYhuD/YR92PB00LteEE9GWMx1CUZ5GWf9IBPtvoM2+bOIEMnDP8rCGwdCu6\n2NNvuU+8BvghHUb5TCjYSg4u9onet7ZZzfPCdrPFOG9bNfvPZQoKdVCzeBdo\n2sp67h4wc68uRTXM3IRaZRxBCVhqB+6lfcEcNzZIb5raGBppaf6XCbOb9udr\n/cCXIoAfwdEIK25Zj2urhdySVXHx/0r+vrRlP8ATVQmot6wXlyFnKyxAKKjj\nYY89l0x4jHhiV8uU6ECm1nNWG5en8cYVIGpgAsMOzN0kk/7Jes44Ro6S5+iv\nx+tpdjo3gqF7pxO9X7/r0lu6R1gtKitOQS+P4Aka4pe2MMt9aaV0gVnyJ8hR\nbW1cg67EK3HFc/4qdPklmHCxfzYNh1OQQh4UB3RJkTp4GTMymO1uhD4w65vm\nTaAhgsK/9QbonhDTaurdiRi4WyxmKm6QjHMlbYMDJOkcsMC+j2chg7PO93Px\nbFn+XjXkNBhw3YBbUPYLyFPfm5WXRp9/csPkLcFp0rgHLkMPNfw2pPUPCWZ0\nhxuwoZT+tRfKxnTcC9Kqv3gVNgg/e/w5U35l6iLIGutNmswrcw9cPPsvIV5l\nOSZzwtzIntQ7r6YSWL4lmLGspUK845Jl4J0KKU2czF5GYhsPjyuMVh3c39jN\njB43\r\n=MsM4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzZD00MtXpe4OWGP2suBMUBZI2Uzg5bhBY/AIAfKTesgIhAL7gh8f3tlmp3Xh8Kfh2jW1VyCBW/QLkI6khzcbeithq"}],"size":8501,"noattachment":false,"key":"/string.prototype.split/-/string.prototype.split-1.0.4.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/string.prototype.split_1.0.4_1613945129308_0.15929027927504436"},"_hasShrinkwrap":false,"readme":"# string.prototype.split <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\nAn ES spec-compliant `String.prototype.split` shim/polyfill/replacement that works as far down as ES3. There's a number of bugs in various browser versions that this package addresses.\n\nThis package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the [spec](https://tc39.es/ecma262/#sec-string.prototype.split).\n\nBecause `String.prototype.split` depends on a receiver (the “this” value), the main export takes the string to operate on as the first argument.\n\n## Example\n\n```js\nvar split = require('string.prototype.split');\nvar assert = require('assert');\n\nassert.deepEqual(split('abc', ''), ['a', 'b', 'c']);\n```\n\n```js\nvar split = require('string.prototype.split');\nvar assert = require('assert');\n/* when String#split is not present */\ndelete String.prototype.split;\nvar shimmedSplit = split.shim();\n\nassert.equal(shimmedSplit, String.prototype.split);\nassert.deepEqual(shimmedSplit('abc', ''), ['a', 'b', 'c']);\n```\n\n```js\nvar split = require('string.prototype.split');\nvar assert = require('assert');\n/* when String#split is present */\nvar shimmedSplit = split.shim();\n\nassert.equal(shimmedSplit, String.prototype.split);\nassert.deepEqual(shimmedSplit('abc', ''), ['a', 'b', 'c']);\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/string.prototype.split\n[npm-version-svg]: https://versionbadg.es/es-shims/String.prototype.split.svg\n[deps-svg]: https://david-dm.org/es-shims/String.prototype.split.svg\n[deps-url]: https://david-dm.org/es-shims/String.prototype.split\n[dev-deps-svg]: https://david-dm.org/es-shims/String.prototype.split/dev-status.svg\n[dev-deps-url]: https://david-dm.org/es-shims/String.prototype.split#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/string.prototype.split.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/string.prototype.split.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/string.prototype.split.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=string.prototype.split\n[codecov-image]: https://codecov.io/gh/es-shims/String.prototype.split/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/es-shims/String.prototype.split/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/String.prototype.split\n[actions-url]: https://github.com/es-shims/String.prototype.split/actions\n","publish_time":1613945129521,"_cnpm_publish_time":1613945129521,"dist-tags":{"latest":"1.0.9"}}