is-word-character

WebJar for is-word-character

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

is-word-character
Last Version

Last Version

1.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

is-word-character
WebJar for is-word-character
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/wooorm/is-word-character

Download is-word-character

How to add to project

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

is-word-character

Build Coverage Downloads Size

Check if a character is a word character (\w, which equals [a-zA-Z0-9_]).

Install

npm:

npm install is-word-character

Use

var wordCharacter = require('is-word-character')

wordCharacter('a') // => true
wordCharacter('Z') // => true
wordCharacter('0') // => true
wordCharacter('_') // => true
wordCharacter(' ') // => false
wordCharacter('💩') // => false

API

wordCharacter(character|code)

Check whether the given character code (number), or the character code at the first position (string), is a word character.

Related

License

MIT © Titus Wormer

Versions

Version
1.0.3
1.0.2
1.0.1