{"name":"string.prototype.split","version":"1.0.6","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.2","get-intrinsic":"^1.1.1","is-regex":"^1.1.4","regexp.prototype.flags":"^1.4.1"},"devDependencies":{"@es-shims/api":"^2.2.3","@ljharb/eslint-config":"^20.2.3","aud":"^2.0.0","auto-changelog":"^2.4.0","eslint":"=8.8.0","functions-have-names":"^1.2.2","has-strict-mode":"^1.0.1","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.5.3"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"testling":{"files":"test/index.js"},"gitHead":"aa27c7675959238adc8ff1f518ad4854ed823192","_id":"string.prototype.split@1.0.6","_nodeVersion":"17.9.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-XOoPH52ppDod+pTT4sG5xtnubs22KZ09YsMZHMP3wes/QH4COY4JLm40Foxts/NsfuWuo8HUP8u+vfDbfNa6TQ==","shasum":"18d720a70ae79cfc28ba2349ad442ef5dabc670d","tarball":"http://registry-npm.ywwl.com/string.prototype.split/download/string.prototype.split-1.0.6.tgz","fileCount":18,"unpackedSize":29119,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyioOZ3Mz5F7gq1b06kNZHbTgBp2AD4iLw+JerPkYR6gIgNbtFZzcKng061/j2t92A7iostGsGesDNxroJZVhZPYY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiUKwkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmphvw/8DY1zGxkFIMOacYwiRdxXE+JP3SedEekm/IFegaieGaHJMXs5\r\nmNNwlzFutlHVJqewgYx6QrG1PYcS3ya4QMd+JrWcyEJ6JdM76TOGGq9oL3s0\r\nCyNZLlj4159cQ+vVOkXhiwylSThQbFfPehEM5Z0fNnEIn5LI05IODcZvuN3T\r\nZHEDO9Oh/nToEKwN3if1VWn4SXqJBbVLBCh9hRJLabc484zI0qI2lEUAsExz\r\nbny7U/30SvXF02b92BjwARODl/wDgWSnldWIPunjIlGZ50eYfxFF7laz1mVS\r\nuG0NGZnCmFVpbIsIVLXAWhfLrT5NQckbUOMONnGbToO0JPSa7pPJ6SjBzyQD\r\nz2Wx4pCwkWPVv5ZZ+Gn4BQ8v+W6o6dR7k0FwTbpeoWNb/g6KVwFoZXdwEjqg\r\ne7QNw2ZNyundVaoeGMmrWOzRnbiSs4AQbIAJQh5rnbmrvh6/JetQnRNTBmno\r\nCBSINmWz3Igdz2Wi8DszmsAoZTW4OcAP8bjwZ1dKs8wDdG8TkmCi3nfi+SF+\r\n20Kuwl+oJmh952544l11Khc/psxkuGCQxztVrfOaiaHdhfenKThMh9lHSQCM\r\ncMdJi3S9mf5vzB2KX/D6xOHefRp9+UvIj9ULzeLWCLnqtBN/rT5Xo1pLy/Qs\r\nCESuEoJFeIhTBPfTwLHQPmlUvPo4PqpIHt0=\r\n=3fmu\r\n-----END PGP SIGNATURE-----\r\n","size":9117,"noattachment":false,"key":"/string.prototype.split/-/string.prototype.split-1.0.6.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.6_1649454116395_0.11023291402847546"},"_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":1649454116529,"_cnpm_publish_time":1649454116529,"dist-tags":{"latest":"1.0.9"}}