JSPM

  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q37055F
  • License MIT

A debug tool

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.

Downloads Version License

Highlights

  • A debug tool.

Install

$ npm install says

Usage

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.server

License

MIT

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