New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

galaxy-utility

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

galaxy-utility

A library of utilities

0.0.4
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 12 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts