1.0.0 • Published 5 years ago
string-upgrade v1.0.0
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"
1.0.0
5 years ago