@full-pack/string-builder
A lightweight and versatile String Utility Package for Node.js & Browser.
Installation
npm install @full-pack/string-builder
require
const { ... } = require('@full-pack/string-builder');
import
import { ... } from '@full-pack/string-builder';
APIs
Class
Data Members
- capacity: number
- length: number
Methods
- insert
- append
- prepend
- appendNewLine
- prependNewLine
- appendSpace
- prependSpace
- appendArray
- prependArray
- appendJSON
- prependJSON
- appendCodePoint
- prependCodePoint
- replaceSubstring
- setString
- getString
- indexOf
- lastIndexOf
- setChar
- substring
- trim
- clear
- reset
- clone
- isFull
- isEmpty
Full documentation here
Build
npm run build
License
The MIT License. Full License is here