basic-auth
3.0.0 · 3 Aug 2026MIT28.1M / weekRepositoryHomepagenpmAtom feed
10 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 3.x · latest line
3.0.0
3 Aug 2026- removed
Removes the default export in favor of
parse(str)#94 Publish package as ESM #99
Add
format({ name, pass })method #65
This release switches the package to ESM.
Changed
Publish package as ESM #99
Add
format({ name, pass })method #65Bump supported node versions >=22 #102
The
parsemethod expects a string
Added
Cross platform base64 support #95
Removed
- removed
Removes the default export in favor of
parse(str)#94Do
parse(req.headers.authorization ?? '')instead
Improvements
Parse performance improved by ~15% #96
- 2.x
2.0.1
20 Sep 2018Only updates a dependency:safe-buffer 5.1.2
2.0.0
13 Sep 2017- removed
Drop support for Node.js below 0.8
- 1.x
1.1.0
18 Nov 2016Add
auth.parsefor low-level string parsing
1.0.4
11 May 2016Improve error message when
reqargument is not an objectImprove error message when
reqmissingheadersproperty
1.0.3
2 Jul 2015Fix regression accepting a Koa context
1.0.2
13 Jun 2015- removed
Remove argument reassignment
Improve error message when
reqargument missingEnable strict mode
Improve error message when
reqargument missingEnable strict mode
Hoist regular expression
Parse with regular expressions
- removed
Remove argument reassignment
1.0.1
5 May 2015Update readme
1.0.0
7 Jul 2014Support empty password
Support empty username
- 0.0.x
0.0.1
30 Nov 2013Initial release