paddys
Pad Strings To Equalise The Length Of Each Line.
Last updated 6 years ago by zvr .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install paddys 
SYNC missed versions from official npm registry.

paddys

npm version

paddys is a package that pads strings so that each line is of the width of the longest line. It can also pad to a specific length.

yarn add -E paddys

Table Of Contents

API

The package is available by importing its default function:

import paddys from 'paddys'

paddys(
  string: string,
  options?: Config,
): string

Pads the string to the right to equalise the length of each line.

_paddys.Config: Options for the program.

Name Type Description
width number The width to which to pad lines.
/* yarn example/ */
import paddys from 'paddys'

const res = paddys(
  `Just stop your wandering,
Look penetratingly into your inherent nature,
And, concentrating your spiritual energy,
Sit in zazen
And break through.`
)
Just stop your wandering,____________________
Look penetratingly into your inherent nature,
And, concentrating your spiritual energy,____
Sit in zazen_________________________________
And break through.___________________________

Copyright

Art Deco © Art Deco 2019 Tech Nation Visa Tech Nation Visa Sucks

Current Tags

  • 1.2.0                                ...           latest (6 years ago)

4 Versions

  • 1.2.0                                ...           6 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (5)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |