0.0.2 • Published 2 years ago

@barelyhuman/jinks v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

JINKS

a 662B link in string matcher

  • Typesafe
  • Tiny (662B, 411B gzipped)

Installation

npm i @barelyhuman/jinks
# or
yarn add @barelyhuman/jinks

Usage

import {jinks} from "@barelyhuman/jinks"

const parsed = jinks("Lorem Ipsum is https://github.com/barelyhuman of the https://google.com");

console.log(parsed[0].value)  // Lorem Ipsum is
console.log(parsed[0].isLink) // false

console.log(parsed[1].value)  // https://github.com/barelyhuman
console.log(parsed[1].isLink) // true

console.log(parsed[2].value)  // of the
console.log(parsed[2].isLink) // false

console.log(parsed[3].value)  // https://google.com
console.log(parsed[3].isLink) // true

License

MIT

0.0.2

2 years ago

0.0.2-beta.0

3 years ago

0.0.1

3 years ago

0.0.1-7

3 years ago

0.0.1-6

3 years ago

0.0.1-5

3 years ago

0.0.1-4

3 years ago

0.0.1-3

3 years ago

0.0.1-2

3 years ago

0.0.1-1

3 years ago

0.0.1-0

3 years ago