{"id":13627294,"url":"https://github.com/anonrig/fast-array-join","last_synced_at":"2025-04-15T12:52:30.432Z","repository":{"id":63730173,"uuid":"570275554","full_name":"anonrig/fast-array-join","owner":"anonrig","description":"61% faster array join for JavaScript.","archived":false,"fork":false,"pushed_at":"2022-11-25T19:20:36.000Z","size":6,"stargazers_count":18,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-02T05:54:43.258Z","etag":null,"topics":["array","javascript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anonrig.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-24T19:04:18.000Z","updated_at":"2022-12-04T21:30:57.000Z","dependencies_parsed_at":"2023-01-22T06:45:39.414Z","dependency_job_id":null,"html_url":"https://github.com/anonrig/fast-array-join","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anonrig%2Ffast-array-join","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anonrig%2Ffast-array-join/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anonrig%2Ffast-array-join/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anonrig%2Ffast-array-join/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anonrig","download_url":"https://codeload.github.com/anonrig/fast-array-join/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249076542,"owners_count":21208811,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["array","javascript"],"created_at":"2024-08-01T22:00:32.531Z","updated_at":"2025-04-15T12:52:30.412Z","avatar_url":"https://github.com/anonrig.png","language":"JavaScript","readme":"# fast-array-join\n\n[![NPM version](https://img.shields.io/npm/v/fast-array-join.svg?style=flat)](https://www.npmjs.com/package/fast-array-join)\n\n`fast-array-join` is a %61 faster array join function compared to `Array.prototype.join`.\n\nTaken from [Node.js repository](https://github.com/nodejs/node/blob/main/lib/internal/util.js#L388) and authored by [@BridgeAR](http://github.com/BridgeAR)\n\n### Installation\n\n```\nnpm i fast-array-join\n```\n\n### Usage\n\n```javascript\nconst fastJoin = require('fast-array-join')\n\nconst input = ['hello', 'world']\n\nconsole.log(fastJoin(input, ' '))\n// \"hello world\"\n```\n\n### Benchmark\n\n\n\n```\n\u003e node benchmark/native-vs-js.mjs\n\n╔══════════════════════╤═════════╤══════════════════╤═══════════╗\n║ Slower tests         │ Samples │           Result │ Tolerance ║\n╟──────────────────────┼─────────┼──────────────────┼───────────╢\n║ Array.prototype.join │    4500 │  96622.01 op/sec │  ± 1.00 % ║\n╟──────────────────────┼─────────┼──────────────────┼───────────╢\n║ Fastest test         │ Samples │           Result │ Tolerance ║\n╟──────────────────────┼─────────┼──────────────────┼───────────╢\n║ fast-array-join      │   10000 │ 155072.20 op/sec │  ± 2.08 % ║\n╚══════════════════════╧═════════╧══════════════════╧═══════════╝```\n```\n","funding_links":[],"categories":["DevTools"],"sub_categories":["Languages"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanonrig%2Ffast-array-join","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanonrig%2Ffast-array-join","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanonrig%2Ffast-array-join/lists"}