2.2.2 โ€ข Published 1 year ago

dart-text v2.2.2

Weekly downloads
92
License
ISC
Repository
github
Last release
1 year ago

DartText

a native JS implementation of functions of dart characters library

Tested with support of Emoji V15 Spec

Installation

npm i dart-text

Usage

const dartText = require('dart-text');

dartText.length('๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ง');
// returns 1

dartText.substring('Emojis ๐Ÿ‘๐Ÿฝ are ๐Ÿ† poison. ๐ŸŒฎs are bad.', 7, 14);
// returns "๐Ÿ‘๐Ÿฝ are ๐Ÿ†"

dartText.substr('Emojis ๐Ÿ‘๐Ÿฝ are ๐Ÿ† poison. ๐ŸŒฎs are bad.', 7, 1);
// returns "๐Ÿ‘๐Ÿฝ"

dartText.split('Emojis ๐Ÿ‘๐Ÿฝ are ๐Ÿ† poison. ๐ŸŒฎs are bad.');
// returns ['E','m','o','j','i','s',' ','๐Ÿ‘๐Ÿฝ',' ','a','r','e',' ','๐Ÿ†',' ','p','o','i','s','o','n','.',' ','๐ŸŒฎ','s',' ','a','r','e',' ','b','a','d','.']

dartText.firstIndexOf('Emojis ๐Ÿ‘๐Ÿฝ are ๐Ÿ† poison. ๐ŸŒฎs are bad.', '๐Ÿ‘๐Ÿฝ');
// returns 7
2.2.1

1 year ago

2.2.0

1 year ago

2.2.2

1 year ago

2.1.2

2 years ago

2.1.3

2 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago