Detalhes do pacote

string.prototype.padend

es-shims20.5mMIT3.1.6

ES2017 spec-compliant String.prototype.padEnd shim.

String.prototype.padRight, String.prototype.padEnd, string, ES2017

readme (leia-me)

String.prototype.padEnd Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

An ES2017 spec-compliant String.prototype.padEnd shim. Invoke its "shim" method to shim String.prototype.padEnd if it is unavailable.

This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec.

Most common usage:

var padEnd = require('string.prototype.padend');

assert(padEnd('foo', 5, 'bar') === 'fooba');

padEnd.shim();

assert(padEnd('foo', 2) === 'foo'.padEnd(2));

Tests

Simply clone the repo, npm install, and run npm test

changelog (log de mudanças)

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

v3.1.6 - 2024-03-21

Commits

  • [actions] use reusable workflows 54902fb
  • [Deps] update call-bind, define-properties, es-abstract b545f14
  • [Refactor] use es-object-atoms where possible eb54e52
  • [Dev Deps] update aud, npmignore, tape b1398f3
  • [Tests] use call-bind instead of function-bind 3bae558

v3.1.5 - 2023-09-04

Commits

  • [Deps] update define-properties, es-abstract b5aa85c
  • [Dev Deps] update @es-shims/api, @ljharb/eslint-config, aud, tape bdce52b

v3.1.4 - 2022-11-07

Commits

  • [actions] reuse common workflows 1599a3a
  • [meta] use npmignore to autogenerate an npmignore file 626d38c
  • [Dev Deps] update eslint, @ljharb/eslint-config, @es-shims/api, safe-publish-latest, tape 9aa073a
  • [meta] add auto-changelog e48bc74
  • [Deps] update define-properties, es-abstract 7113258
  • [Dev Deps] update eslint, @ljharb/eslint-config, aud, functions-have-names, tape 800dfc3
  • [actions] update rebase action to use reusable workflow a3f9ddb
  • [actions] update codecov uploader 6d2290f

3.1.3 / 2021-10-04

  • [Robustness] remove runtime .push call
  • [readme] add github actions/codecov badges
  • [Deps] update es-abstract
  • [meta] use prepublishOnly script for npm 7+
  • [Dev Deps] update eslint, @ljharb/eslint-config, @es-shims/api, aud, tape
  • [actions] update workflows
  • [actions] use node/install instead of node/run; use codecov action

3.1.2 / 2021-02-20

  • [meta] do not publish github action workflow files
  • [Deps] update call-bind, es-abstract
  • [Dev Deps] update eslint, @ljharb/eslint-config, aud, functions-have-names, has-strict-mode, tape
  • [actions] update workflows
  • [Tests] increase coverage

3.1.1 / 2020-11-21

  • [Deps] update es-abstract; use call-bind where applicable
  • [Dev Deps] update eslint, @ljharb/eslint-config, functions-have-names, tape; add aud, `safe-publish-latest
  • [meta] gitignore nyc output
  • [actions] add "Allow Edits" workflow
  • [actions] switch Automatic Rebase workflow to pull_request_target event
  • [Tests] migrate tests to Github Actions
  • [Tests] run nyc on all tests
  • [Tests] add implementation test; run es-shim-api in postlint; use tape runner

3.1.0 / 2019-12-14

  • [New] add auto entry point
  • [Refactor] use split-up es-abstract (77% bundle size decrease)
  • [readme] remove testling
  • [readme] Stage 4
  • [Deps] update define-properties, es-abstract, function-bind
  • [Dev Deps] update eslint, @ljharb/eslint-config, covert, tape, @es-shims/api; use functions-have-names
  • [meta] add funding field
  • [meta] Only apps should have lockfiles
  • [Tests] use shared travis-ci configs
  • [Tests] use npx aud instead of nsp or npm audit with hoops
  • [Tests] remove jscs
  • [actions] add automatic rebasing / merge commit blocking

3.0.0 / 2015-11-17

  • Renamed to padStart/padEnd per November 2015 TC39 meeting.

2.0.0 / 2015-09-25

1.0.0 / 2015-07-30

  • v1.0.0