0.0.4 • Published 2 years ago

galaxy-utility v0.0.4

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

galaxy-utility

npm install galaxy-utility -D

Usage

getClass

import { getClass } from 'galaxy-utility';

<div
  className={
    getClass({
      'class-1': true,
      'class-2': false
    })
  }
>
  Galaxy Utility
</div>

getAge

import { getAge } from 'galaxy-utility';

getAge(timestamp: number)

Ex: return 20

getGmtTime

import { getGmtTime } from 'galaxy-utility';

getGmtTime()

Ex: return GMT+07:00

slugURL

import { slugURL } from 'galaxy-utility';

slugURL(url: string)

Ex: return nguyen-hong-duc
0.0.3

2 years ago

0.0.4

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago