@jswork/next-pad-start

1.0.0 • Public • Published

next-pad-start

Pad start for next.

version license size download

installation

npm install -S @jswork/next-pad-start

usage

import '@jswork/next-pad-start';

nx.padStart('abc', 3, '0'); // 'abc'
nx.padStart('abc', 5, '0'); // '00abc'

other solution

('0' + 1).slice(-2)
// "01"
('0' + 12).slice(-2)
// "12"

license

Code released under the MIT license.

Dependencies (0)

    Dev Dependencies (16)

    Package Sidebar

    Install

    npm i @jswork/next-pad-start

    Weekly Downloads

    3

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    5.28 kB

    Total Files

    5

    Last publish

    Collaborators

    • afeiship