0.1.1 • Published 5 years ago

hatsu-says v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 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

5 years ago

0.1.0

5 years ago

0.0.18

5 years ago

0.0.19

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.12

5 years ago

0.0.13

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago