1.0.4 • Published 6 years ago

tally-marks v1.0.4

Weekly downloads
4
License
ISC
Repository
github
Last release
6 years ago

Tally marks

This simple function will convert a number into tally marks.

To install

npm install tally-marks

Converts a number into a tally mark sting

const tallyMarks = require("tally-marks");
tallyMarks(12)

// 卌,卌,||

with html:ture

const tallyMarks = require("tally-marks");
tallyMarks(13, { html: true })

// ||||,||||,|||

with custom tally marks

const tallyMarks = require("tally-marks");
tallyMarks(18, { five: `🖐️ `, one: `☝️` })

// 🖐️🖐️🖐️☝️☝️☝️

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago