1.0.0 • Published 5 years ago

string-upgrade v1.0.0

Weekly downloads
2
License
ISC
Repository
-
Last release
5 years ago

String +

const stringUp = require("string-upgrade")

stringUp.assign(String.prototype)

"hello".capitalize()
//=> "Hello"

"héllô".normalize()
//=> "hello"

"hello".reverse()
//=> "olleh"

"hello  world.js".words()
//=> ["hello","world","js"]

"hello (world)".isolate("(",")")
//=> "world"

"hello (world)".isolate("(",")","everyone")
//=> "world"
//= "hello everyone"