Skip to content
JS
Package

username

Get the username of the current user

v7.0.0, 14 Nov 2023MITESM onlyTypes: Bundled
$ npm install username

Key numbers

As of 25 Sept 2026
Weekly downloads
993.7k
+248% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
2 years ago
v7.0.0
GitHub stars
144
17 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0500k1m1.5mSept 2025Mar 2026Sept 2026High 1.3m (25 Aug 2026)Low 218.7k (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.

993,685 downloads last week, 4,629,944 in the last month. The 12-month change of +248% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
017 in total
Latest version
7.0.0, 14 Nov 20232 years ago
First published
30 Mar 2014
Last push to GitHub
14 Nov 20231,045 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
294

Major versions

  1. v7 first release 7.0.0, 14 Nov 2023
  2. v6 first release 6.0.0, 16 Aug 2021
  3. v5 first release 5.0.0, 1 May 2019
  4. v4 first release 4.0.0, 26 Aug 2018
  5. v3 first release 3.0.0, 15 Jun 2017
  6. v2 first release 2.0.0, 23 Jan 2016
  7. v1 first release 1.0.0, 14 Aug 2014
  8. v0 first release 0.1.0, 30 Mar 2014

Recent releases

VersionPublished
7.0.014 Nov 2023
6.0.016 Aug 2021
5.1.012 Jun 2019
5.0.01 May 2019
4.1.026 Jan 2019
4.0.026 Aug 2018
3.0.015 Jun 2017
2.3.017 Jan 2017
2.2.222 Jun 2016
2.2.115 Jun 2016
2.2.01 Jun 2016
2.1.029 Feb 2016
2.0.023 Jan 2016
1.0.15 Oct 2015
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=18
Runtimes
-
Unpacked size (npm)
5.8 kB
Dependencies (2)
execamemoize
npm install username
  • jsDelivrhttps://cdn.jsdelivr.net/npm/username@7.0.0/
  • unpkghttps://unpkg.com/username@7.0.0/
  • esm.shhttps://esm.sh/username@7.0.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

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