string-range

WebJar for string-range

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

string-range
Last Version

Last Version

1.2.2
Release Date

Release Date

Type

Type

jar
Description

Description

string-range
WebJar for string-range
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/dominictarr/string-range

Download string-range

How to add to project

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

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.

string-range

Check whether a string is within a range.

Example

var ranges = require('string-range')

ranges.satisfies('hello', {min: 'a', max: 'z'})
=> true
ranges.satisfies('Hello', {min: 'a', max: 'z'})
=> false

//force a range inside a prefix!

ranges.satisfies('TYPE~key', ranges.prefix({min:'a', max:'z'}, 'TYPE')
=> true

min and max are alaises for start and end.

License

MIT

Versions

Version
1.2.2