JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q26322F
  • License MIT

A Simple Module with Easy To Us Tools

Package Exports

  • bastools
  • bastools/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bastools) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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