2.0.1 • Published 3 years ago

fortext v2.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
3 years ago

Fortext

A javascript library for text operations.

Available functions

initials([ isInitialsCapital , execludeWordsArray ])

get the initials of a string capital or as it is, with or without some words
var text = "national aeronautics and space administration";
console.log(text.initials()); // output: naasa
console.log(text.initials(false,["and"])); //output: nasa
console.log(text.initials(true,["and"])); //output: NASA

firstWord()

get the first word of a string
var text = "national aeronautics and space administration";
console.log(text.firstWord()); //output: national

lastWord()

get the last word of a string
var text = "national aeronautics and space administration";
console.log(text.lastWord()); //output: administration

More is yet to come ;) ..

Test

npm run test
2.0.1

3 years ago

2.0.0

4 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago