@palett/projector-factory

0.9.16 • Public • Published

says

A light and simple debug tool.

Downloads Version License

Highlights

  • A debug tool.

Install

$ npm install says

Usage

Simple

import { Says } from '@palett/projector-factory'
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-factory'
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

MIT

Copyright (c) 2019-present, Haoyang (Vincent) Wang

Readme

Keywords

Package Sidebar

Install

npm i @palett/projector-factory

Weekly Downloads

0

Version

0.9.16

License

MIT

Unpacked Size

8.14 kB

Total Files

5

Last publish

Collaborators

  • hoyeung