1.0.0 • Published 4 years ago

nipponcolorsjs v1.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
4 years ago

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