0.0.2 • Published 8 years ago

paulyk-utils v0.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

Sample utility functions.

Examples

getRandomNumber(3,10)
// => 5
getRandomElement([5, 77, 35])
// => 35
getUrlSlug('New URL slug')
// => new-url-slug
getMonthName(2,'fr')
// => février

Installation

npm install https://github.com/paulyk/paulyk-utils --save

In your code

import * as utils from 'paulyk-utils'

console.log(utils.getUrlSlug('some slug'))
console.log(utils.getRandomElement(['jan', 'feb', 'mar']))