1.0.0 • Published 4 years ago

snaxey v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

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
  1. First, Add Something To Your JSON. For Example:
{
	"hello": "hello world"
}
  1. 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"))