Metadata-Version: 2.1
Name: leftpad
Version: 0.1.0
Summary: A port of the infamous left-pad npm package
Home-page: https://github.com/cglwn/leftpad-pypi
Author: James Cagalawan
Author-email: james.cagalawan@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown

# leftpad
Left pad a string in Python. 
Done to try out creating a `pip` package and uploading it to the [Python Package Index (PyPI)](https://pypi.org/).

# Install
`pip install leftpad`

# Usage
```python
from leftpad import left_pad

left_pad("foo", 5)
// => "  foo"

left_pad("foobar", 6)
// => "foobar"

left_pad(1, 2, '0')
// => "01"

left_pad(17, 5, 0)
// => "00017"
```

## Testing
Run `python -m doctest leftpad.py`.

