1.0.5 • Published 7 years ago

textminator v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Textminator

Simple regex wrapper

let t2 = require('textminator');
let yourRegExp = "lazy bastard"
let victimString = "lazy bastard, this girl is so nasty!!!."
let yourOptions = "gi"

t2
  .remove(yourRegExp)
  .from(victimString)
  .options(yourOptions) // optional (;一_一)
  .apply()
  .then((result)=>{
    console.log(result)
  })
...
t2.remove("6(?=\\w)").from.("123456asdfg").apply().then((x)=>{
  console.log(x) //12345asdfg
})

command line

  node node_modules/textminator/index.js --remove="hello\\s" --from="hello world" --options="g"
  world
1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago