@karappo-inc/util
v0.1.0
Published
Useful codes for and by Karappo Inc.
Readme
Useful codes for and by Karappo Inc.
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)') // trueimport { 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 .