Skip to content

karappo/npm-util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Useful codes for and by Karappo Inc.

Build Status

for Users

Features

import { hexToRgb } from '@karappo-inc/util'

hexToRgb('#000000') // 'rgb(0,0,0)'
import { isValidColor } from '@karappo-inc/util'

isValidColor('red') // true
isValidColor('#ffffff') // true
isValidColor('rgba(0,0,0,0.5)') // true
import { sleep } from '@karappo-inc/util'

console.log('start...')
await sleep(1000)
console.log('... 1 sec passed')

for Developers

Publish to npm registory

You can also publish manualy

npm login
npm publish --access public .