{"name":"string.prototype.split","version":"1.0.2","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.0","define-properties":"^1.1.3","es-abstract":"^1.18.0-next.0","get-intrinsic":"^1.0.1","is-regex":"^1.1.1","regexp.prototype.flags":"^1.3.0"},"devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^17.1.0","aud":"^1.1.3","auto-changelog":"^2.2.0","eslint":"^7.7.0","functions-have-names":"^1.2.1","has-strict-mode":"^1.0.0","nyc":"^10.3.2","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":"fd61bffab779c75582a739aad03cd9ff9042ba46","_id":"string.prototype.split@1.0.2","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-/sfuNyfXB+66hzd/Jcq7JmLoMX4jfCVN74rmWwDn/a7UU0olKSDAi4za70sCgiZm0mqnVcl20pdevQ3RPao9ew==","shasum":"290d4d8a37a886c95b61fcc46d7a5d63416427a6","tarball":"http://registry-npm.ywwl.com/string.prototype.split/download/string.prototype.split-1.0.2.tgz","fileCount":23,"unpackedSize":25591,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJft1zVCRA9TVsSAnZWagAApm4P/3pc2O697K96ylr+tJR/\nxVQ6u+UIGemwg6MgpfqspA+vNR0GTELT9su3ubZ1KvYdsBcVqvp0HJfHtYmx\nR70o32Bac+lJoeQz2cltTA3bdEtOtZd+nKd4N3cO33hh1tfCo4dFF4jZZg/J\nBLqImtxJAsVFnS0Lhms/bWurpgodVKbJIkNCVTY/+ksHATICjwUUfTnnN+Fk\nuOH8vGqx0NjsoxdOTSMdBdKgBHAv7m5oFrRduIvinruUVAJ+2ruDKX/+t6Tr\nQGEBZZv2RWRMT2UcugO+FfPHLwLjlVTN4G+ETI9I0/wwwWcpMDBWh5DLC4QP\nt5KG88/amHtwrrDIcKwXmKgDU7THBlcyLKQKT+KW5ffa+CBbRsCnhaUatr4k\nH0NFIyVwy89XAL/TN/NUexyxllVOzxvTfoOXnZuO/MuBdM+rRTkRzrJTObWV\nml5yEcrqHEaPfsOqop7zam7C2X23PQ7M0UTrsjZORbyvSaySHI8pYg6h6r20\nRlXJhQOIKN27hiLHxUV1zivYw8WBWMWp1FMD+gHSy+1Qbl6c2pkDxbqcl7GW\njiPlMtX+D92OJc911Us5kZZ1pxfGSHdfRS7Vjc7t9sGPpariRbexfA3zogPh\nRsaHSKdPsGBESv8rRz0vBKTQiQT1VUnQM8UJIiGZRrAL6X7FIHQiRSVFiK+4\ni/vx\r\n=1xix\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDe9M5sPPutkE3mQtR8ujGUPhF9hgh+hyyN1dwOa5GfzAIhAKCc0TvQemFKujjYOtyL3FoiwJYIWwhcLwEHynT5vybV"}],"size":8202,"noattachment":false,"key":"/string.prototype.split/-/string.prototype.split-1.0.2.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.2_1605852373333_0.41645076974268536"},"_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":1605852373525,"_cnpm_publish_time":1605852373525,"dist-tags":{"latest":"1.0.9"}}