1.0.0 • Published 11 months ago

@mvanvu/ujs v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Util JS

UMD JS work on the both Browser and NodeJs

Install

// With yarn
yarn add @mvanvu/ujs

// With NPM
npm install @mvanvu/ujs

Usage On Browser

<script src="dist/index.js">
    const { DateTime } = window.$ujs;
    console.log(DateTime.now());
</script>

Usage On NodeJS

import { DateTime } from '@mvanvu/ujs';
console.log(DateTime.now());

Test

// Test all utils
yarn test

// Test for a util
yarn test datetime

See all the sample tests at: /test/lib

API Documentation

  • DateTime an advanced of the JS native Date
  • EventEmitter an event emitter
  • Hash provide some useful methods such as: base64, sha256, uuid, JWT...
  • Is validate the value that will (or will not) match some conditions
  • Registry powerful object key-value pair manager
  • Schema validate the value by using Schema
  • Transform provide the transformer to convert any value to some expected value
  • Util provide some useful common util methods
1.0.0

11 months ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.3

1 year ago

0.0.4

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago