Skip to content
JS
Package

longest

Get the longest item in an array.

v2.0.1, 26 May 2017MITCommonJSTypes: None
$ npm install longest

Key numbers

As of 25 Sept 2026
Weekly downloads
3.6m
-4% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
9 years ago
v2.0.1
GitHub stars
30
9 forks
Open issues / PRs
2 / 1
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
02m4m6mSept 2025Mar 2026Sept 2026High 4.8m (25 Nov 2025)Low 1.8m (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.

3,648,626 downloads last week. The 12-month change of -4% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
010 in total
Latest version
2.0.1, 26 May 20179 years ago
First published
14 Jan 2014
Last push to GitHub
4 Apr 20183,095 days before the snapshot
Repository archived
No
Open issues
2
Open pull requests
1
Commits, last 52 weeks
0
Dependents on npm
-

Major versions

  1. v2 first release 2.0.0, 4 May 2017
  2. v1 first release 1.0.0, 24 Feb 2015
  3. v0 first release 0.1.0, 14 Jan 2014

Recent releases

VersionPublished
2.0.126 May 2017
2.0.04 May 2017
1.0.131 Mar 2015
1.0.024 Feb 2015
0.3.224 Feb 2015
0.3.121 Jan 2015
0.3.028 Nov 2014
0.2.128 Mar 2014
0.2.028 Mar 2014
0.1.014 Jan 2014
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=0.10.0
Runtimes
-
Unpacked size (npm)
-
Dependencies (0)
None
npm install longest
  • jsDelivrhttps://cdn.jsdelivr.net/npm/longest@2.0.1/
  • unpkghttps://unpkg.com/longest@2.0.1/
  • esm.shhttps://esm.sh/longest@2.0.1
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

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