Skip to content

Latest commit

 

History

History
71 lines (57 loc) · 1.32 KB

README.md

File metadata and controls

71 lines (57 loc) · 1.32 KB

@full-pack/string-builder

npm

jest Code Style: Prettier

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

  • string-builder

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