{"name":"string.prototype.split","version":"1.0.1","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":"tape 'test/*.js'","tests-esm":"node test/index.mjs","test":"npm run tests-only && npm run tests-esm","posttest":"npx aud","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":{"define-properties":"^1.1.3","es-abstract":"^1.18.0-next.0","is-regex":"^1.1.1","regexp.prototype.flags":"^1.3.0"},"devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^17.1.0","auto-changelog":"^2.2.0","eslint":"^7.7.0","functions-have-names":"^1.2.1","has-strict-mode":"^1.0.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},"testling":{"files":"test/index.js"},"gitHead":"57126835442d5037ecb57581cecd72235349d275","_id":"string.prototype.split@1.0.1","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-IcI0997IXRqLMj+8vXX4DYZVodJX8bvUihaEEQ11RKK33141pT6wMjvmsqwzp3K1KdhhrY9W0wqQzoMeMCy0uw==","shasum":"9d5c63d2488f637d127ec1abe7f94e1b1a4b5e48","tarball":"http://registry-npm.ywwl.com/string.prototype.split/download/string.prototype.split-1.0.1.tgz","fileCount":23,"unpackedSize":24385,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOiC2CRA9TVsSAnZWagAAyEoQAJdXOImR9eGuzTpx0b0E\nvOn1l/KGHHr/0VFcyRlnmnPaIIJyht+Zpcq5DpruoWfB4DYOpLZhCcWY2F/U\nYm39Xw9VJmwE44x5IzdEGSXFlTPfH2AmoTn5eo7Xk30hDGdzScFDz1q+bDJt\nw50ompaDrcmEyvfcZfNy8lvcM3J/wlmT2XG2XaB6Q+Wpbkl+05kIU1zr+7fA\nJt48Q4tEj/wXcvIv8J8p74N+qxec4SPtPBE32w/qj9zAgAwch9dls7IhGHEH\n8xkfnELtMiIR0cx1pK14ib+rzlyqOywrWVgTw46t9bHtyMIpgeld+CsiddyF\ntRL/HF8WvAG3frOT/fGkwLVqJJXFM6MfrozHAjlmf2OD1bW+My8MdH0GJeXI\nVG5qK+Qz/7x23ZKJ5tCAEY5P0zXGqI9E4bnJ3qx6gSbtvh+kulZvUm5Xr4H9\nAjhPWvs4qDoMhxYnh0YCDCtjWwlvKWQSyqtztF1MZVWjW2Pke1kmdsn+XOh5\nqRg2gujKHD4OSi8AAqP9Mb0jffw8lYm0bKk5RYByFCT/2zmHZGbJMeRrGBtV\nG1jSzv8ugafvMxCYobT0bUwn5dl5tl5bpKKQ9WeMNsGNzgLZ6QocHQK8l5yb\nHVkPfRkpnq8GATyoxxfIZKMZjiORKZs2s2NUr3DDhihN97reGbPsbgCQGhrr\ngLmu\r\n=A/gn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvtAs+S0Dzbo33hXyL7HozhGP7NuEyXwzRPybxQYUFiwIhAKFnpUqPLCq/YJkbx+6dgRviauMOARQITKOEZRKCTi5R"}],"size":7804,"noattachment":false,"key":"/string.prototype.split/-/string.prototype.split-1.0.1.tgz"},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/string.prototype.split_1.0.1_1597644982439_0.36590132848276724"},"_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":1597644982571,"_cnpm_publish_time":1597644982571,"dist-tags":{"latest":"1.0.9"}}