A JS stringbuilder utility
npm install stringweaverreplace, split, length)
npm install stringweaver to install the module locally.
javascript
/* notes:
- make sure the script/node project is of type "module"
- the bundled module can be found @ https://unpkg.com/stringweaver/Bundle/index.min.js
- the module is imported as $S here */
import $S from "[location of index.js or Bundle/index.min.js]";
// assign the symbolic string extension
const SB = Symbol.toSB;
const myBrandNewString = $SHello.append(" world");
const myNextString = "** "[SB].append(myBrandNewString).toUpperCase().append(!);
// myBrandNewString => "Hello world"
// myNextString => "** HELLO WORLD!"
`
$3
Use npm test` to run all tests (with coverage report)