0.0.0 • Published 5 years ago
zepo v0.0.0
zepo
zepo contains small functions which will make coding easier and searching for the right syntax unnecessary. I started to built it because I wanted to know how to build a module for npm and because everytime I try to generate a random number I have to look it up. I will add new functions when there are other parts of my code that should be simpler. Please feel free to fork this repository, to create issues, to give me feedback or to submit new features.
Installation
npm install --save zepo
yarn add zepo
Usage
Just import the function you need like this (e.g. random):
import { random } from 'zepo'
Math
random
random(100, 50)
Returns a number between 50 and 100.
random(100)
Returns a number between 0 and 100.
Strings
longer
longer('Lorem Ipsum', 5)
Checks if "Lorem Ipsum" is longer than 5. Returns true or false.
0.0.0
5 years ago