npm.io
1.0.4 • Published 8 years ago

tally-marks

Licence
ISC
Version
1.0.4
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
3

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: `☝️` })

//

Keywords