Package Exports
- @palett/says
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@palett/says) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
says
A light and simple debug tool.
Highlights
- A debug tool.
Install
$ npm install saysUsage
Simple
import { Says } from '@palett/says'
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/says'
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.serverLicense
Copyright (c) 2019-present, Haoyang (Vincent) Wang