Skip to content
JS
Package

phpdie

|| DIE('reason') Throws an error like PHP 's `OR DIE('REASON')`, Simple error throwing in a functional dev style.

v1.7.0, 18 Jul 2025MITESM onlyTypes: Bundled
$ npm install phpdie

Key numbers

As of 26 Sept 2026
Weekly downloads
2.2k
-11% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
1 year ago
v1.7.0
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
02k4k6kSept 2025Mar 2026Sept 2026High 5k (4 Aug 2026)Low 776 (2 Jun 2026)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

2,201 downloads last week, 10,188 in the last month. The 12-month change of -11% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
1.7.0, 18 Jul 20251 year ago
First published
-
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
10

Major versions

-

Recent releases

-

Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
14 kB
Dependencies (1)
expect-type
Peer dependencies (1)
typescript
npm install phpdie
  • jsDelivrhttps://cdn.jsdelivr.net/npm/phpdie@1.7.0/
  • unpkghttps://unpkg.com/phpdie@1.7.0/
  • esm.shhttps://esm.sh/phpdie@1.7.0
Sources: npm registry, npm downloads API. Data fetched 26 Sept 2026.

Indexability: Not indexed (discovery only): downloads_week 1714 < 10000; completeness 0.5 < 0.6 (missing: github_owner, stars, release_date, category); GitHub data not fetched yet; no category.