@zuber1077/js-helpers

1.3.0 • Public • Published

@zuber1077/js-helpers

Js Helpers and validator functions collection

IMPORTANT: you need to use ES6 import and export syntax in order to use this module.

  • Or use esm module "npm i esm" to use ES6 module syntax

Install

$ npm i zuber1077/js-helpers

Usage

validator

import {isColor} from '@zuber/js-helpers'

isColor('#fff');
//=> true

utils

import {formatDate} from '@zuber/js-helpers'

// assume we have created a date 
  new Date().getTime()
// that output > 1554647023445
let date = new Date(1554647023445)

formatDate(date, 'yyyy-MM-dd hh:mm')
//=> 2019-04-07 22:23

Package Sidebar

Install

npm i @zuber1077/js-helpers

Weekly Downloads

3

Version

1.3.0

License

MIT

Unpacked Size

9.25 kB

Total Files

6

Last publish

Collaborators

  • zuber1077