0.1.1 • Published 4 years ago

hatsu-says v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

says

A light and simple debug tool.

Highlights

  • A debug tool.

Install

$ npm install says

Usage

Simple

import { Says } from 'hatsu-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 'hatsu-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 (y) 2019-present, Haoyang (Vincent) Wang

0.1.1

4 years ago

0.1.0

4 years ago

0.0.18

4 years ago

0.0.19

4 years ago

0.0.17

4 years ago

0.0.16

4 years ago

0.0.15

4 years ago

0.0.12

4 years ago

0.0.13

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago