Skip to content
JS
Package

direction

Detect the direction of text: left-to-right, right-to-left, or neutral

v2.0.1, 7 Nov 2021MITESM onlyTypes: BundledCLI tools and terminal utilities
$ npm install direction

Key numbers

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

Downloads

Last week 2026-09-15 to 2026-09-21
02m4m6mSept 2025Mar 2026Sept 2026High 5.8m (18 Aug 2026)Low 1.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.

4,153,388 downloads last week, 20,192,845 in the last month. The 12-month change of +104% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
016 in total
Latest version
2.0.1, 7 Nov 20214 years ago
First published
14 Jun 2014
Last push to GitHub
25 Oct 2024699 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
163

Major versions

  1. v2 first release 2.0.0, 17 Mar 2021
  2. v1 first release 1.0.0, 13 Aug 2016
  3. v0 first release 0.0.1, 14 Jun 2014

Recent releases

VersionPublished
2.0.17 Nov 2021
2.0.017 Mar 2021
1.0.426 Jan 2020
1.0.314 May 2019
1.0.229 Apr 2018
1.0.19 Jul 2017
1.0.013 Aug 2016
0.1.517 Dec 2014
0.1.424 Nov 2014
0.1.324 Nov 2014
0.1.225 Oct 2014
0.1.121 Sept 2014
0.1.08 Jul 2014
0.0.319 Jun 2014
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
8.5 kB
Dependencies (0)
None
npm install direction
  • jsDelivrhttps://cdn.jsdelivr.net/npm/direction@2.0.1/
  • unpkghttps://unpkg.com/direction@2.0.1/
  • esm.shhttps://esm.sh/direction@2.0.1
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.