1.0.2 • Published 9 months ago

string-player v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

String Player

There are various string Manipulation function and class what Can yuo use

LIKE:-

import { log, MakePriceString, mekeLinkString,GenerateOTP,repleCaracter } from "string-player"

functionality of GenerateOTP Class

by default it return 6 charecters unique otp each time

import {GenerateOTP,log} from 'string-player'

let otp=new GenerateOTP();

log(otp.getPin())//returns 271633
log(otp.getPin())//returns 474316
log(otp.getPin())//returns 706210

You can get opt of more or lest Carecter :-

import {GenerateOTP,log} from 'string-player'

let less=new GenerateOTP(4);// 4 Charecters 
let more=new GenerateOTP(9);// 9 Charecters 


let opt_of_4_charecters=less.getPin() //return unique value like 7927
let opt_of_9_charecters=more.getPin();//return unique value like 640821514;


console.log({opt_of_4_charecters,opt_of_9_charecters});
//prints
// { opt_of_4_charecters: 7927,opt_of_9_charecters: 640821514 }

functionality of repleCaracter

import { log, repleCaracter } from "string-player"



let a =`function() {
    return "Website is hack by us '
}`

a =await repleCaracter(a);
log(a)

returns

function() {
    return "Website is hack by us '
}

functionality of MakePriceString

import { log,  MakePriceString} from "string-player"

let a = 500;
a=await MakePriceString(a);
log(a)

//returns  500.00

functionality of mekeLinkString

import { log, mekeLinkString } from "string-player"

let a = 'https://www.your-website.com/a b c d f g e l k p n m o k j l i p q r s';

log(mekeLinkString(a))
//prints https://www.your-website.com/a-b-c-d-f-g-e-l-k-p-n-m-o-k-j-l-i-p-q-r-s

You can contribute also by joining github-github Repository

Your Support will inspire me to create better packages for You

Follow Me Github => Mubtasimf443

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago