@faker-js/faker の代わりになるライブラリ
npm モック・テストデータ
同じ分類でいま一番使われているのは msw(週 3,368万 回)、4週間で一番伸びているのは fishery(+35.9%)です。
同じ分類のライブラリ 1行目が @faker-js/faker
比較ツールで開く →| パッケージ | 週間DL | 4週比 | 最新版の公開 |
|---|---|---|---|
| @faker-js/faker Generate massive amounts of fake contextual data | 2,454万 | +21.2% | 2026-08-14 |
| msw The industry standard for API mocking in JavaScript. | 3,368万 | +30.6% | 2026-11-15 |
| sinon JavaScript test spies, stubs and mocks. | 1,285万 | +12.0% | 2026-07-20 |
| nock HTTP server mocking and expectations library for Node.js | 824万 | +13.0% | 2026-11-05 |
| fishery A library for setting up JavaScript factories to help build objects as test data | 141万 | +35.9% | 2025-12-08 |
| json-server [![Node.js CI](https://github.com/typicode/json-server/actions/workflows/node.js | 40.8万 | +0.8% | 2026-03-23 |
「代わり」は同じ分類に入っているライブラリです。機能や書き方は同じではないので、移る前にそれぞれの公式ドキュメントで確かめてください。