1.0.2 • Published 4 years ago

delta.functions v1.0.2

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

Hello

This is a simple package with some functions to help you.

Install delta.functions

$ npm install --save delta.functions

Features

  • (🤩) Simple & easy to use
  • ( ☁ ) Lightweight
  • (🚄) Fast

Guide

functiondescriptionArgs
replaceAllReplaces all occurrencesString, Search, Replace
sleepWaits a period of time to perform a functionMilliseconds
filterfilters an array, removing equal elementsArray
shuffleRandomizes the elements of an arrayArray
randomNumberReceive a random number between the minimum and maximum values setMin, Max
kissRandom gifnone
slapRandom gifnone
hugRandom gifnone
patRandom gifnone
tickleRandom gifnone

Example of use

const DeltaFunctions = require('delta.functions');
const Client = new DeltaFunctions('pt-br'); // or "en" to English

Client.replaceAll('Hi Paul!', 'Paul', 'there'); // Hi there!

Client.sleep(10000); // { Promise }

Client.filter([1, 1, 2, 3, 3, 4, 5, 6, 6]); // [1, 2, 3, 4, 5, 6]

Client.shuffle([1, 2, 3, 4, 5, 6]); // [3, 6, 2, 1, 4, 5]

Client.randomNumber(1, 20); // 16

Client.kiss(); // { Promise }

Client.slap(); // { Promise }

Client.hug(); // { Promise }

Client.pat(); // { Promise }

Client.tickle(); // { Promise }
1.0.2

4 years ago

0.0.2-starts

4 years ago

0.0.1-starts

4 years ago