# pad-start

> ES spec-compliant String.prototype.padStart shim.

Latest version **1.0.2** (published 2016-04-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install pad-start
pnpm add pad-start
yarn add pad-start
bun add pad-start
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-04-15 |
| First published | 2016-04-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | bubkoo |
| Maintainers | bubkoo |
| Keywords | string, str, pad, start, end, prefix, postfix, shim, polyfill, Ponyfill, util, utils, utility, tool |

## Links

- npm: https://www.npmjs.com/package/pad-start
- Repository: https://github.com/gearcase/pad-start
- Homepage: https://github.com/gearcase/pad-start#readme
- Issues: https://github.com/gearcase/pad-start/issues
- npm.io page: https://npm.io/package/pad-start

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2016-04-15
- 1.0.1 — 2016-04-12
- 1.0.0 — 2016-04-12
- 0.0.0 — 2016-04-11

## README

# pad-start <sup>[![Version Badge](http://versionbadg.es/gearcase/pad-start.svg)](https://npmjs.org/package/pad-start)</sup>


> ES spec-compliant String.prototype.padStart shim.

[![MIT License](https://img.shields.io/badge/license-MIT_License-green.svg?style=flat-square)](https://github.com/gearcase/pad-start/blob/master/LICENSE)

[![build:?](https://img.shields.io/travis/gearcase/pad-start/master.svg?style=flat-square)](https://travis-ci.org/gearcase/pad-start)
[![coverage:?](https://img.shields.io/coveralls/gearcase/pad-start/master.svg?style=flat-square)](https://coveralls.io/github/gearcase/pad-start)



## Install

```
$ npm install --save pad-start 
```


## Usage

> For more use-cases see the [tests](https://github.com/gearcase/pad-start/blob/master/test/spec/index.js)

```js

// a polyfill that doesn't overwrite the native method

var padStart = require('pad-start');

padStart('x', 4, 'ab');        // => 'abax'
padStart('x', 4);              // => '   x'
padStart('abcd', 2, '#');      // => 'abcd'
padStart('abcd', 6, '123456'); // => '12abcd'

```


## Related

- [pad-end](https://github.com/gearcase/pad-end) - ES spec-compliant String.prototype.padEnd shim.
- [start-with](https://github.com/gearcase/start-with) - Determines whether a string begins with the characters of another string.
- [end-with](https://github.com/gearcase/end-with) - Determines whether a string ends with the characters of another string.



## Contributing
 
Pull requests and stars are highly welcome. 

For bugs and feature requests, please [create an issue](https://github.com/gearcase/pad-start/issues).

---
_Source: https://npm.io/package/pad-start · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
