Skip to content
JS
Package

pirates

Properly hijack require, i.e., properly define require hooks and customizations

v4.0.7, 27 Mar 2025MITCommonJSTypes: Bundled
$ npm install pirates

Key numbers

As of 25 Sept 2026
Weekly downloads
61.8m
+58% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
1 year ago
v4.0.7
GitHub stars
400
21 forks
Open issues / PRs
0 / 1
Contributors
14
Commits, last 52 weeks
18

Downloads

Last week 2026-09-15 to 2026-09-21
025m50m75m100mSept 2025Mar 2026Sept 2026High 93.4m (16 Jun 2026)Low 24.3m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

61,766,942 downloads last week, 273,363,312 in the last month. The 12-month change of +58% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
020 in total
Latest version
4.0.7, 27 Mar 20251 year ago
First published
5 Dec 2015
Last push to GitHub
6 Sept 202618 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
1
Commits, last 52 weeks
18
Dependents on npm
1,545

Major versions

  1. v4 first release 4.0.0, 11 Jul 2018
  2. v3 first release 3.0.0, 6 Apr 2017
  3. v2 first release 2.0.0, 8 Dec 2015
  4. v1 first release 1.0.0, 5 Dec 2015

Recent releases

VersionPublished
4.0.727 Mar 2025
4.0.620 Jun 2023
4.0.524 Jan 2022
4.0.47 Dec 2021
4.0.37 Dec 2021
4.0.27 Dec 2021
4.0.117 Feb 2019
4.0.011 Jul 2018
3.0.210 Nov 2017
3.0.17 Apr 2017
3.0.06 Apr 2017
2.1.218 Sept 2016
2.1.120 Jan 2016
2.1.011 Dec 2015
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>= 6
Runtimes
-
Unpacked size (npm)
12 kB
Dependencies (0)
None
npm install pirates
  • jsDelivrhttps://cdn.jsdelivr.net/npm/pirates@4.0.7/
  • unpkghttps://unpkg.com/pirates@4.0.7/
  • esm.shhttps://esm.sh/pirates@4.0.7
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.