snaxey
v1.0.0
Published
Welcome To Snaxey ====== ## *What Is **Snaxey?*** Snaxey Is A Basic Easy Facility Package, Allows You To Test Functions **EASILY**
Downloads
2
Readme
Welcome To Snaxey
What Is Snaxey?
Snaxey Is A Basic Easy Facility Package, Allows You To Test Functions EASILY
First Thing To Do
npm i snaxey
const snaxey = require('snaxey');
What You Can Do With Snaxey
- Calculator
const snaxey = require('snaxey');
console.log(snaxey.calculator(15,"+",15))
console.log(snaxey.calculator(15,"-",14))
console.log(snaxey.calculator(15,"*",2))
console.log(snaxey.calculator(12,"/",2))
- JSON
- First, Add Something To Your JSON. For Example:
{
"hello": "hello world"
}
- Add This To Your JS File
const snaxey = require('snaxey');
//only the hello world
console.log(snaxey.json("./(yourfile).json", "hello"))
OR
const snaxey = require('snaxey');
//all JSON Things were on the json files
console.log(snaxey.json("./(yourfile).json"))
- Replace
const snaxey = require('snaxey');
let Regex = new RegExp(/man/gi)
let Str = 'man you\'re HOT man man'
//will replace man -> woman
console.log(snaxey.replace(Str,Regex,"woman"))