npm.io
0.0.1 • Published 10 years ago

left-shark

Licence
Apache-2.0
Version
0.0.1
Deps
1
Vulns
0
Weekly
0
Stars
4

left-shark

It's like left-pad, except the examples have sharks.

Installation

npm install --save left-shark

Usage

> const leftShark = require('left-shark')
> console.log(leftShark('|\\ ', 23))
                    |\
> console.log(leftShark('|\\ ', 23, '~'))
~~~~~~~~~~~~~~~~~~~~|\

Wait, what?

This is using lodash.padstart under the hood because JDD said Sup.

Keywords