1.0.0 • Published 4 years ago

@feizheng/next-pad-index v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

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 }

apitypedefault
chartstring'0'
stepnumber0
sizenumber2

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.

1.0.0

4 years ago