Skip to content

nsomar/LeftPad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeftPad

[![CI Status](http://img.shields.io/travis/Omar Abdelhafith/LeftPad.svg?style=flat)](https://travis-ci.org/Omar Abdelhafith/LeftPad) Version License Platform

Swift implementation of the famous npm left-pad module

Usage

To run the example project, clone the repo, and run pod install from the Example directory first. (Dont actually install this, this is a joke :) )

Requirements

Installation

LeftPad is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "LeftPad"

Usage

leftPad(string: "foo", padding: 5)
"  foo"
leftPad(string: "foobar", padding: 5)
"foobar"

Author

Omar Abdelhafith, o.arrabi@me.com

License

LeftPad is available under the MIT license. See the LICENSE file for more info.

About

Swift implementation of the famous npm left-pad (http://left-pad.io/) module

Resources

License

Stars

Watchers

Forks

Packages

No packages published