2.0.1 • Published 2 years ago

fortext v2.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
2 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

2 years ago

2.0.0

3 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago