https://github.com/d-indifference/multipliable-string
A class for creating a multiplieble strings, which you can multiply as same, as in Python
https://github.com/d-indifference/multipliable-string
Last synced: 5 months ago
JSON representation
A class for creating a multiplieble strings, which you can multiply as same, as in Python
- Host: GitHub
- URL: https://github.com/d-indifference/multipliable-string
- Owner: d-indifference
- License: mit
- Created: 2021-05-18T14:30:49.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-16T15:52:45.000Z (over 4 years ago)
- Last Synced: 2025-08-23T08:52:47.180Z (10 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# multipliable-string [](https://www.npmjs.com/package/multipliable-string) [](https://npmjs.org/package/multipliable-string) [](https://npmjs.org/package/multipliable-string)
> A class for creating a multipliable strings, which you can multiply as same, as in Python
## Install
Install with [npm](https://www.npmjs.com/):
```sh
$ npm install --save multipliable-string
```
## Usage
You can import class `MultipliableString` and work with it as same, as with `String` class in JavaScript. For multiply you should call the `multiply()` method.
```js
const MultipliableString = require('multipliable-string');
console.log(`Javascript goes b${new MultipliableString('r').multiply(30)}`); //=> Javascript goes brrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
const myVar = new MultipliableString('Test');
console.log(myVar.multiply(10)); //=> TestTestTestTestTestTestTestTestTestTest
```
### Author
**Demon of indifference**
* [GitHub Profile](https://github.com/d-indifference/)
* [Twitter Profile](https://twitter.com/d_indifference)
### License
Copyright © 2021, [Demon of indifference](https://twitter.com/d_indifference).
Released under the [MIT License](LICENSE).
***