direction

WebJar for direction

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

direction
Last Version

Last Version

1.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

direction
WebJar for direction
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/wooorm/direction

Download direction

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/direction/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>direction</artifactId>
    <version>1.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/direction/
implementation 'org.webjars.npm:direction:1.0.3'
// https://jarcasting.com/artifacts/org.webjars.npm/direction/
implementation ("org.webjars.npm:direction:1.0.3")
'org.webjars.npm:direction:jar:1.0.3'
<dependency org="org.webjars.npm" name="direction" rev="1.0.3">
  <artifact name="direction" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='direction', version='1.0.3')
)
libraryDependencies += "org.webjars.npm" % "direction" % "1.0.3"
[org.webjars.npm/direction "1.0.3"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

direction

Build Coverage Downloads Size

Detect direction: left-to-right, right-to-left, or neutral.

API

Install:

npm install direction

Use:

var direction = require('direction')

direction('A') // => 'ltr'
direction('anglais') // => 'ltr'
direction('بسيطة') // => 'rtl'
direction('@') // => 'neutral'

CLI

Install:

npm install -g direction

Use:

Usage: direction [options] <words...>

Detect directionality: left-to-right, right-to-left, or neutral

Options:

  -h, --help           output usage information
  -v, --version        output version number

Usage:

# output directionality
$ direction @
# neutral

# output directionality from stdin
$ echo 'الانجليزية' | direction
# rtl

License

MIT © Titus Wormer

Versions

Version
1.0.3
1.0.2