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
Maintainers
1
Install size
9.68 kB
Created

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
Install with bower
bower install repeat-string --save

Usage

var repeat = require('repeat-string');

repeat('A', 5);
//=> AAAAA

Author

Jon Schlinkert

Other javascript/node.js utils

Other projects that I maintain:

License

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


This file was generated by verb-cli on October 01, 2014.

Keywords

FAQs

Last updated on 14 Oct 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