{"name":"string.prototype.split","version":"1.0.5","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"],"./auto":"./auto.js","./polyfill":"./polyfill.js","./implementation":"./implementation.js","./shim":"./shim.js","./package.json":"./package.json"},"scripts":{"prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","lint":"eslint --ext=js,mjs .","postlint":"es-shim-api --bound","pretest":"npm run lint","tests-only":"nyc --exclude='**/*.mjs' 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.19.1","get-intrinsic":"^1.1.1","is-regex":"^1.1.4","regexp.prototype.flags":"^1.3.1"},"devDependencies":{"@es-shims/api":"^2.2.2","@ljharb/eslint-config":"^18.0.0","aud":"^1.1.5","auto-changelog":"^2.3.0","eslint":"^7.32.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.3.1"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"testling":{"files":"test/index.js"},"gitHead":"ce3686da878438b1cfdd8eb66ddaf4f29d1e0490","_id":"string.prototype.split@1.0.5","_nodeVersion":"12.15.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-FgqiU8gmPzQBf26xXghoTrjmNSPcMgCFDK0fYHcN9yjt+BlLDSD0MO1J5d8ODsDjIxVzgmU0wdQlp/WgrzRlLQ==","shasum":"7e29a82405e17cc984dc0905312932ed056e08b3","tarball":"http://registry-npm.ywwl.com/string.prototype.split/download/string.prototype.split-1.0.5.tgz","fileCount":19,"unpackedSize":28133,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh28OfCRA9TVsSAnZWagAAewMQAIMDAEoWFHIFvVVB7ldc\nLKOx/qQWcEEUz4tihpCqqNKqgjgkZjqr6yADmfrYw0yBbzYLbIiS/e88xLn1\nSL18QH2OEo9sYFCooEWg+BGllQJc3vLl5+eBbtX2WoZn8CfBOHsHoVShgwR3\nYcEX4sZuLcAwXtN2++HSD3dehGJdjAZJqysjtNLtcczettrjeWZum4XC9zYn\nbU2thtyIk+H2+uiK64mFzAKfpmP/SOEm1YYM93Fl+P/YtGY9G5gBhqoIU0OZ\n1txCj/n0n367THfckR+n0z4L5eqc0HMA8Tpktj4h/hjljbfntvvngge87JBf\n2ujnNmiaXDk9cMKIGkPrZwpY8An4VVv8UvKHDL7BRV2GHNT0zNoA723Lzn17\nPV7cQoTB8I8BDHI02U3YgdMLaJpgG220xK6xlb+CnWmTuvNSvy3U/o0hoYQ4\nJ0kTCupaN7ufK+QLhH9YNECGEvZO3aIWpYpg8yagBAUflAJX+gUDfT906Ijc\nLONrUoWVqUQZBQKejlZRNzQiuUq8tszhfb4dlwxo5FxJTsNP72kKUzkIIeJ8\nLVt3lMOoW3WbJDJHv1bmlz3lTKeuxwGcf4NQP+gvV5AQZkTqDFvF/HbemDsd\nB0UJODg+Ol1oFuhIN6wslUrS8LH1eLlsd+dj5748kEiGHFLZ+bniY18a8rh3\neFDX\r\n=cBdj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbrRYyO4gWSRqLaGPdWfvlC2jKD/0CQLRffHFWlwMp4wIhANXCd/VoDsjALT9mNWG5Ql4MyHOOyoL0mG9c3AZxB94u"}],"size":8977,"noattachment":false,"key":"/string.prototype.split/-/string.prototype.split-1.0.5.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.5_1633406542080_0.02603275717748743"},"_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":1633406542226,"_cnpm_publish_time":1633406542226,"dist-tags":{"latest":"1.0.9"}}