tally-marks

1.0.4 • Public • Published

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

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

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i tally-marks

    Weekly Downloads

    5

    Version

    1.0.4

    License

    ISC

    Unpacked Size

    3.11 kB

    Total Files

    5

    Last publish

    Collaborators

    • cnak145