Skip to content

Like left-pad, except the examples have sharks.

Notifications You must be signed in to change notification settings

rgbkrk/left-shark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Like left-pad, except the examples have sharks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published