1.0.4 • Published 5 years ago

@newbytee/mstring v1.0.4

Weekly downloads
-
License
MPL-2.0
Repository
gitlab
Last release
5 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

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago