Miss any of our Open RFC calls?Watch the recordings here! »

two-digit

1.0.6 • Public • Published

two-digit

NPM version NPM downloads

About

Format the number to two digits

How to Install

First, install the library in your project by npm:

$ npm install two-digit

Or Yarn:

$ yarn add two-digit

Getting Started

Connect libary to project using ES6 import:

import twoDigit from 'two-digit';

Or CommonJS:

const twoDigit = require('two-digit');

Next use library:

const formattedValue = twoDigit(/* value */);

Params

Type Description
string or number value to be formatted

License

This project is licensed under the MIT License © 2020-present Jakub Biesiada

Install

npm i two-digit

DownloadsWeekly Downloads

2

Version

1.0.6

License

MIT

Unpacked Size

4.47 kB

Total Files

9

Last publish

Collaborators

  • avatar