Skip to content
JS
Package

lines-and-columns

Maps lines and columns to character offsets and back.

v2.0.4, 7 Nov 2023MITESM + CommonJSTypes: Bundled
$ npm install lines-and-columns

Key numbers

As of 25 Sept 2026
Weekly downloads
92.2m
+79% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
2 years ago
v2.0.4
GitHub stars
27
6 forks
Open issues / PRs
0 / 10
Contributors
2
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
050m100m150mSept 2025Mar 2026Sept 2026High 128.3m (16 Jun 2026)Low 35.3m (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.

92,152,501 downloads last week, 448,519,621 in the last month. The 12-month change of +79% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
025 in total
Latest version
2.0.4, 7 Nov 20232 years ago
First published
2 Dec 2015
Last push to GitHub
7 Nov 20231,053 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
10
Commits, last 52 weeks
0
Dependents on npm
1,637

Major versions

  1. v2 first release 2.0.0, 20 Nov 2021
  2. v1 first release 1.0.0, 2 Dec 2015

Recent releases

VersionPublished
2.0.47 Nov 2023
2.0.323 Nov 2021
1.2.421 Nov 2021
1.1.1121 Nov 2021
1.1.1021 Nov 2021
1.2.321 Nov 2021
1.2.221 Nov 2021
2.0.220 Nov 2021
1.2.120 Nov 2021
1.1.920 Nov 2021
1.1.820 Nov 2021
2.0.120 Nov 2021
2.0.020 Nov 2021
1.2.020 Nov 2021
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
^12.20.0 || ^14.13.1 || >=16.0.0
Runtimes
-
Unpacked size (npm)
7.5 kB
Dependencies (0)
None
npm install lines-and-columns

CDN

jsDelivr: 443.2k requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/lines-and-columns@2.0.4/
  • unpkghttps://unpkg.com/lines-and-columns@2.0.4/
  • esm.shhttps://esm.sh/lines-and-columns@2.0.4
Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

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