Socket
Socket
Sign inDemoInstall

repeat-string

Package Overview
Dependencies
0
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    repeat-string

Repeat the given string, n times.


Version published
Weekly downloads
16M
increased by5.51%
Maintainers
1
Install size
5.51 kB
Created
Weekly downloads
 

Package description

What is repeat-string?

The repeat-string npm package is a minimalistic library that allows users to repeat a given string a specified number of times. It is useful for creating padding, indentation, or repeating patterns in strings.

What are repeat-string's main functionalities?

String repetition

Repeats the '*' character 3 times to produce the string '***'.

"*".repeat(3)

Other packages similar to repeat-string

Readme

Source

repeat-string NPM version

Repeat the given string, n times.

Install

Install with npm:

npm i repeat-string --save-dev

Usage

Require repeat-string:

var repeatString = require('repeat-string');
console.log(repeatString('A', 5));
//=> AAAAA

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license


This file was generated by verb-cli on March 27, 2014.

Keywords

FAQs

Last updated on 27 Mar 2014

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc