1.0.4 • Published 6 years ago

@newbytee/mstring v1.0.4

Weekly downloads
-
License
MPL-2.0
Repository
gitlab
Last release
6 years ago

MutableString.js

MutableString.js is an implementation of mutable strings for JavaScript, written in TypeScript.

Installation

MutableString.js is available on npm and can be installed via the following command:

npm install @newbytee/mstring

Example code

// Declare a new MutableString
let foo = new MString("greetings!");

// Replace the "!" with a question mark
foo.setChar(foo.find("!"), "?");

// Log the result as a string
console.log(foo.getString());
1.0.2

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago