npm.io
1.0.2 • Published 6 years ago

libfast

Licence
ISC
Version
1.0.2
Deps
0
Size
2 kB
Vulns
0
Weekly
0

Welcome to Libfast!

What does Libfast do?

Libfast is an easy to use Function Testing package, which allows you to test functions easily without struggles!

Here are some examples:

const libfast = require('libfast')
console.log(libfast.calculator(15,"*",2))
//Logs 30 into the console.
console.log(libfast.calculator(15,"+",2))
//Logs 17 into the console.

console.log(libfast.calculator(15,"-",2))
//Logs 13 into the console.

console.log(libfast.calculator(3,"/",15))
//Logs 5 into the console.

console.log(libfast.calculator(15,'^',3))
//Would log 3375 to the console.
let Regex = new RegExp(/hi/gi)
let Str = 'hi how are you, hi hi hi hi!'
console.log(libFast.replace(Str, Regex, "hello"))
// This would check all the capitilizations of what ever is in our regex, however the capitilization does not matter because the "/gi".
//Would Log: hello how are you, hello hello hello hello!

Thank you!

How do I install LibFast?

Like any other package, just run:

npm i libfast

Thank you, I hope you install the Package!