Package
direction
Detect the direction of text: left-to-right, right-to-left, or neutral
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
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
- v2 first release 2.0.0, 17 Mar 2021
- v1 first release 1.0.0, 13 Aug 2016
- v0 first release 0.0.1, 14 Jun 2014
Recent releases
| Version | Published |
|---|---|
| 2.0.1 | 7 Nov 2021 |
| 2.0.0 | 17 Mar 2021 |
| 1.0.4 | 26 Jan 2020 |
| 1.0.3 | 14 May 2019 |
| 1.0.2 | 29 Apr 2018 |
| 1.0.1 | 9 Jul 2017 |
| 1.0.0 | 13 Aug 2016 |
| 0.1.5 | 17 Dec 2014 |
| 0.1.4 | 24 Nov 2014 |
| 0.1.3 | 24 Nov 2014 |
| 0.1.2 | 25 Oct 2014 |
| 0.1.1 | 21 Sept 2014 |
| 0.1.0 | 8 Jul 2014 |
| 0.0.3 | 19 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- jsDelivr
https://cdn.jsdelivr.net/npm/direction@2.0.1/ - unpkg
https://unpkg.com/direction@2.0.1/ - esm.sh
https://esm.sh/direction@2.0.1
Indexability: Indexed.