@feizheng/next-pad-index

1.0.0 • Public • Published

next-pad-index

PadLeft with zero for index.

version license size download

installation

npm install -S @feizheng/next-pad-index

options

{ char: '0', step: 0, size: 2 }

api type default
chart string '0'
step number 0
size number 2

usage

import '@feizheng/next-pad-index';

// default options:
nx.padIndex(2);               // 002
nx.padIndex(100);             // 100

// with options:
nx.padIndex(100, { step: 1})  //101

license

Code released under the MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i @feizheng/next-pad-index

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

4.81 kB

Total Files

5

Last publish

Collaborators

  • afeiship