Gathering detailed insights and metrics for @stdlib/string-base-repeat
Gathering detailed insights and metrics for @stdlib/string-base-repeat
Repeat a string a specified number of times and return the concatenated result.
npm install @stdlib/string-base-repeat
Typescript
Module System
Min. Node Version
Node Version
NPM Version
72.6
Supply Chain
98.8
Quality
82.1
Maintenance
100
Vulnerability
88
License
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
32,284
Last Day
36
Last Week
455
Last Month
1,973
Last Year
20,790
Apache-2.0 License
2 Stars
39 Commits
3 Watchers
5 Branches
11 Contributors
Updated on Dec 01, 2024
Minified
Minified + Gzipped
Latest Version
0.2.2
Package Id
@stdlib/string-base-repeat@0.2.2
Unpacked Size
33.41 kB
Size
8.73 kB
File Count
14
NPM Version
8.19.4
Node Version
16.20.2
Published on
Jul 26, 2024
Cumulative downloads
Total Downloads
Last Day
-42.9%
36
Compared to previous day
Last Week
5.6%
455
Compared to previous week
Last Month
-14.6%
1,973
Compared to previous month
Last Year
89.3%
20,790
Compared to previous year
We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we've built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.
The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.
When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.
To join us in bringing numerical computing to the web, get started by checking us out on GitHub, and please consider financially supporting stdlib. We greatly appreciate your continued support!
Repeat a string a specified number of times and return the concatenated result.
1npm install @stdlib/string-base-repeat
1var repeat = require( '@stdlib/string-base-repeat' );
Repeats a string n
times and returns the concatenated result.
1var str = repeat( 'a', 5 ); 2// returns 'aaaaa' 3 4str = repeat( '', 100 ); 5// returns '' 6 7str = repeat( 'beep', 0 ); 8// returns ''
1var discreteUniform = require( '@stdlib/random-base-discrete-uniform' ); 2var repeat = require( '@stdlib/string-base-repeat' ); 3 4var i; 5for ( i = 0; i < 100; i++ ) { 6 console.log( repeat( 'beep', discreteUniform( 0, 3 ) ) ); 7}
This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
See LICENSE.
Copyright © 2016-2024. The Stdlib Authors.
No vulnerabilities found.
No security vulnerabilities found.