All Projects → left-pad → Left Pad

left-pad / Left Pad

Licence: mit
⬅️ String left pad -- deprecated, use String​.prototype​.pad​Start()

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Left Pad

Tiny Utf8
Unicode (UTF-8) capable std::string
Stars: ✭ 322 (-72.69%)
Mutual labels:  string-manipulation
Go Pretty
Pretty print tables and more in golang!
Stars: ✭ 777 (-34.1%)
Mutual labels:  string-manipulation
Shell Functools
Functional programming tools for the shell
Stars: ✭ 971 (-17.64%)
Mutual labels:  string-manipulation
Portable Utf8
🉑 Portable UTF-8 library - performance optimized (unicode) string functions for php.
Stars: ✭ 405 (-65.65%)
Mutual labels:  string-manipulation
Guitar
A Cross-Platform String and Regular Expression Library written in Swift.
Stars: ✭ 641 (-45.63%)
Mutual labels:  string-manipulation
Chr
🔤 Lightweight R package for manipulating [string] characters
Stars: ✭ 18 (-98.47%)
Mutual labels:  string-manipulation
greek-utils
A JavaScript library for Greek language with utilities such as replacement of accented and other diacritics characters, conversion from Greek to phonetic, transliterated or greeklish Latin and more.
Stars: ✭ 66 (-94.4%)
Mutual labels:  string-manipulation
Litestringbuilder
Alternative to the System.Text.StringBuilder C# class.
Stars: ✭ 48 (-95.93%)
Mutual labels:  string-manipulation
Utils
A collection of useful PHP functions, mini classes and snippets that you need and can use every day.
Stars: ✭ 750 (-36.39%)
Mutual labels:  string-manipulation
Mightystring
Making Ruby Strings Powerful
Stars: ✭ 28 (-97.63%)
Mutual labels:  string-manipulation
Algorithms and data structures
180+ Algorithm & Data Structure Problems using C++
Stars: ✭ 4,667 (+295.84%)
Mutual labels:  string-manipulation
Pyahocorasick
Python module (C extension and plain python) implementing Aho-Corasick algorithm
Stars: ✭ 593 (-49.7%)
Mutual labels:  string-manipulation
Dynamicstring
PHP Template based random string generator
Stars: ✭ 23 (-98.05%)
Mutual labels:  string-manipulation
React String Replace
A simple way to safely do string replacement with React components
Stars: ✭ 360 (-69.47%)
Mutual labels:  string-manipulation
Cracking The Coding Interview
Solutions for Cracking the Coding Interview - 6th Edition
Stars: ✭ 35 (-97.03%)
Mutual labels:  string-manipulation
Cuerdas
String manipulation library for Clojure(Script)
Stars: ✭ 272 (-76.93%)
Mutual labels:  string-manipulation
Underscore.string.java
String manipulation operations in java
Stars: ✭ 6 (-99.49%)
Mutual labels:  string-manipulation
Beta
An open source reimplementation of Benny Brodda's BETA in Python
Stars: ✭ 65 (-94.49%)
Mutual labels:  string-manipulation
Str Helper
⚡️ A flexible & powerful string manipulation helper for PHP | using pipe method chaining
Stars: ✭ 40 (-96.61%)
Mutual labels:  string-manipulation
Stringplus
Funny and minimal string library for C++ inspired by underscore.string
Stars: ✭ 7 (-99.41%)
Mutual labels:  string-manipulation

left-pad

String left pad

Build Status

Install

$ npm install left-pad

Usage

const leftPad = require('left-pad')

leftPad('foo', 5)
// => "  foo"

leftPad('foobar', 6)
// => "foobar"

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

leftPad(17, 5, 0)
// => "00017"

NOTE: The third argument should be a single char. However the module doesn't throw an error if you supply more than one chars. See #28.

NOTE: Characters having code points outside of BMP plane are considered two distinct characters. See #58.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].