3.2.0 • Published 2 years ago

bastools v3.2.0

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

Bas Tools

  • Simple Tools for Better Coding Experience

Functions

Random

const { Random } = require('bastools')
const array = ["hello" , "hi"]
const randomised = Random(array)
console.log(randomised)
// Returns a Random String From The Array

RandomIDGen Deprecated

const { RandomIDGen } = require('bastools')
const final = RandomIDGen(20)
console.log(final)
// Returns A String full of Random Characters

DupCheck

const { DupCheck } = require('bastools')
const final = Dupcheck("hello" "hello")
console.log(final)
// Returns A  Boolean

StringToNumber

const { StringToNumber } = require('bastools')
const final = StringToNumber("123")
console.log(final)
// Returns Number

RemoveDup

const { RemoveDup } = require('bastools')
const array = ["BasTools" , "TestTools" , "BasTools"]
const final = RemoveDup(array)
console.log(final)
// Removes Duplicates from an Array and Returns a New Set
  • At This Point I Am Very lazy to explain all the functions so just try to get it by the function name pls

firstLetterToUppercase

firstLetterOfEveryWordToUppercase

lastLetterToUppercase

lastLetterOfEveryWordToUppercase

ArrayToString

StringToArray

RandomString

getFutureTime

wait

allLettersUppercaseExecptFirstLetterForEveryWord

allLettersUppercaseExecptFirstLetter

encryptBase64

decryptBase64

countWords

countLetters

3.2.0

2 years ago

3.0.0

2 years ago

2.0.0

2 years ago

1.0.0

3 years ago