Line-numbers
line-numbers
Add line numbers to a string.
A humble module that will add line number to a given string! Mostly useful for text editor and displaying some code snippet.
Install it: $ npm install --save line-numbers
Simple usage:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
P.S: You can also pass in options like: before
, number
, width
, after
and line
(They are self explanatory?)
GIF FTW!
Thanks to Simon Lydell for line-numbers
.