Skip to content
JS
Package

csrf

primary logic behind csrf tokens

v3.1.0, 10 Apr 2019MIT-Types: NoneSecurity
$ npm install csrf

Key numbers

As of 25 Sept 2026
Weekly downloads
806.2k
+17% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
3
Direct, from package.json
Last release
7 years ago
v3.1.0
GitHub stars
315
33 forks
Open issues / PRs
0 / 11
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0500k1m1.5mSept 2025Mar 2026Sept 2026High 1.2m (28 Jul 2026)Low 445k (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.

806,211 downloads last week, 3,805,654 in the last month. The 12-month change of +17% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
018 in total
Latest version
3.1.0, 10 Apr 20197 years ago
First published
27 Aug 2012
Last push to GitHub
3 Jan 2026264 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
11
Commits, last 52 weeks
0
Dependents on npm
-

Major versions

  1. v3 first release 3.0.0, 10 May 2015
  2. v2 first release 2.0.1, 22 Aug 2014
  3. v0 first release 0.0.1, 27 Aug 2012

Recent releases

VersionPublished
3.1.010 Apr 2019
3.0.615 Mar 2017
3.0.58 Mar 2017
3.0.414 Nov 2016
3.0.327 May 2016
3.0.223 May 2016
3.0.128 Jan 2016
3.0.010 May 2015
2.0.74 May 2015
2.0.614 Feb 2015
2.0.51 Feb 2015
2.0.49 Jan 2015
2.0.330 Dec 2014
2.0.29 Nov 2014
Module format
-Not determined from package.json
TypeScript types
None
Node.js engine range
>= 0.8
Runtimes
-
Unpacked size (npm)
13 kB
Dependencies (3)
rndmtsscmpuid-safe
npm install csrf
  • jsDelivrhttps://cdn.jsdelivr.net/npm/csrf@3.1.0/
  • unpkghttps://unpkg.com/csrf@3.1.0/
  • esm.shhttps://esm.sh/csrf@3.1.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.