1.0.0 • Published 4 years ago
nipponcolorsjs v1.0.0
nipponcolorsjs
日本の伝統色
Install
npm install nipponcolorsjs
// or
yarn add nipponcolorsjs
Use
// nodejs
const {
colors,
getColorWithName,
getColorWithRoma,
getRandonColor
} = require('nipponcolorsjs')
// es6
import {
colors,
getColorWithName,
getColorWithRoma,
getRandonColor
} from 'nipponcolorsjs'
console.log(colors) // [color1, color2, ……]
const color = getColorWithName('空')
const color = getColorWithRoma('SORA')
const color = getRandonColor()
Reference
1.0.0
4 years ago