{"name":"array.prototype.join","version":"1.0.4","description":"ES spec-compliant `Array.prototype.join` shim/polyfill/replacement that works as far down as ES3.","main":"index.js","exports":{".":"./index.js","./auto":"./auto.js","./polyfill":"./polyfill.js","./implementation":"./implementation.js","./shim":"./shim.js","./package.json":"./package.json"},"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","preversion":"auto-changelog","prelint":"evalmd README.md","lint":"eslint --ext=js,mjs .","postlint":"es-shim-api --bound","pretest":"npm run lint","test":"npm run tests-only","posttest":"npx npm@'>= 10.2' audit --production","tests-only":"nyc tape 'test/**/*.js'","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/Array.prototype.join.git"},"keywords":["javascript","ecmascript","polyfill","shim","array","join","Array.prototype.join","ES5","es-shim API"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/es-shims/Array.prototype.join/issues"},"homepage":"https://github.com/es-shims/Array.prototype.join#readme","engines":{"node":">= 0.4"},"devDependencies":{"@es-shims/api":"^2.5.1","@ljharb/eslint-config":"^21.1.1","auto-changelog":"^2.5.0","encoding":"^0.1.13","eslint":"=8.8.0","evalmd":"^0.0.19","functions-have-names":"^1.2.3","has-strict-mode":"^1.0.1","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.9.0"},"dependencies":{"call-bind":"^1.0.8","call-bound":"^1.0.2","define-properties":"^1.2.1","es-abstract":"^1.23.5","es-object-atoms":"^1.0.0","is-string":"^1.1.0"},"testling":{"files":"test/*.js"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"_id":"array.prototype.join@1.0.4","gitHead":"e34cbfee351bf11bade1b4467e509f65b2e9a0eb","_nodeVersion":"23.4.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-x5u8B84876ps2lr1OjfIjE5ub63TSYGns8zOWddOoLlToWlUOcOGalTq8JTEhrtSTWlxzNyOPNPZ5uF7AMPJOg==","shasum":"36ccb4e397b7bc322a6f256f4fd4e8f86ffac59f","tarball":"http://registry-npm.ywwl.com/array.prototype.join/download/array.prototype.join-1.0.4.tgz","fileCount":17,"unpackedSize":19573,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAgxFV9tYshVhm0tI2I7WZvR1jOgMHbDkN0Hvyi/dkCrAiEA1yXM5+qfD2fs5dGtq3FsrIE9GbpaAox0rqZpNP4RlJA="}],"size":7095,"noattachment":false,"key":"/array.prototype.join/-/array.prototype.join-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-npm-production","tmp":"tmp/array.prototype.join_1.0.4_1733955163339_0.7720854529598036"},"_hasShrinkwrap":false,"readme":"# array.prototype.join <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 `Array.prototype.join` shim/polyfill/replacement that works as far down as ES3.\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-array.prototype.concat).\n\nBecause `Array.prototype.join` depends on a receiver (the “this” value), the main export takes the array to operate on as the first argument.\n\n## Example\n\n```js\nvar join = require('array.prototype.join');\nvar assert = require('assert');\n\nvar a = [1, 1, 1];\nassert.deepEqual(join(a, 'x'), '1x1x1');\n```\n\n```js\nvar join = require('array.prototype.join');\nvar assert = require('assert');\n/* when Array#join is not present */\ndelete Array.prototype.join;\nvar shimmed = join.shim();\nassert.equal(shimmed, join.getPolyfill());\nassert.equal(shimmed, Array.prototype.join);\nassert.deepEqual([1, 2, 3].join('x'), join([1, 2, 3], 'x'));\n```\n\n```js\nvar join = require('array.prototype.join');\nvar assert = require('assert');\n/* when Array#join is present */\nvar shimmed = join.shim();\nassert.equal(shimmed, Array.prototype.join);\nassert.deepEqual([1, 2, 3].join(), join([1, 2, 3]));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/array.prototype.join\n[npm-version-svg]: https://versionbadg.es/es-shims/Array.prototype.join.svg\n[deps-svg]: https://david-dm.org/es-shims/Array.prototype.join.svg\n[deps-url]: https://david-dm.org/es-shims/Array.prototype.join\n[dev-deps-svg]: https://david-dm.org/es-shims/Array.prototype.join/dev-status.svg\n[dev-deps-url]: https://david-dm.org/es-shims/Array.prototype.join#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/array.prototype.join.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/array.prototype.join.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/array.prototype.join.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=array.prototype.join\n[codecov-image]: https://codecov.io/gh/es-shims/Array.prototype.join/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/es-shims/Array.prototype.join/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/Array.prototype.join\n[actions-url]: https://github.com/es-shims/Array.prototype.join/actions\n","publish_time":1733955163519,"_cnpm_publish_time":1733955163519,"dist-tags":{"latest":"1.0.4"}}