@newbytee/mstring
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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());

Package Sidebar

Install

npm i @newbytee/mstring

Weekly Downloads

0

Version

1.0.4

License

MPL-2.0

Unpacked Size

21.3 kB

Total Files

6

Last publish

Collaborators

  • newbytee