New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pad-end

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pad-end

ES7 spec-compliant String.prototype.padEnd shim.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

pad-end Version Badge

ES7 spec-compliant String.prototype.padEnd shim.

MIT License

build:? coverage:?

Install

$ npm install --save pad-end 

Usage

For more use-cases see the tests


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

var padEnd = require('pad-end');

padEnd('x', 4, 'ab');        // => 'xaba'
padEnd('x', 4);              // => 'x   '
padEnd('abcd', 2, '#');      // => 'abcd'
padEnd('abcd', 6, '123456'); // => 'abcd12'

  • pad-start - ES spec-compliant String.prototype.padStart shim.
  • start-with - Determines whether a string begins with the characters of another string.
  • 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.

Keywords

FAQs

Package last updated on 15 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc