@palett/projector
v0.12.0
Published
Projector projects input number to color within pre-defined bound
Downloads
1,357
Readme
says
A light and simple debug tool.
Highlights
- A debug tool.
Install
$ npm install says
Usage
Simple
import { Says } from '@palett/projector'
import { greys, palette } from 'spettro'
const castList = {
client: palette.Red.base,
server: palette.Purple.base,
stranger: greys.Grey.base
}
const debug = Says.build(castList)
debug.says('client', '\'Shakespeare\'')
debug.says('server', '\'Dickens\'')
Factorial with pipeline operator
import { Says } from '@palett/projector'
import { greys, palette } from 'spettro'
const castList = {
client: palette.Red.base,
server: palette.Purple.base,
stranger: greys.Grey.base
}
const debug = Says.build(castList)
const says = {
client: debug.credit('chef'),
server: debug.credit('aboyeur')
}
'Shakespeare' |> says.client
'Dickens' |> says.server
License
Copyright (c) 2019-present, Haoyang (Vincent) Wang