c5-js-utils
v0.0.2
Published
my simple javascript library utilities
Downloads
1
Readme
c5-js-utils
A group of javascript utilites for validating strings and objects/dates, as well as formatting dates and times.
Installation
# using npm
npm install c5-js-utils
# using yarn
yarn add c5-js-utils
Usage
# using require
const {
isValid,
isValidDate,
formatDate,
pad,
getDayOfWeek,
addDays,
formatTimeString,
formatMoney
} = require("c5-js-utils");
# using import
import {
isValid,
isValidDate,
formatDate,
pad,
getDayOfWeek,
addDays,
formatTimeString,
formatMoney
} from 'c5-js-utils';
Example
Javascript examples:
const someString = "hello;
console.log(isValid(someString));