@cyann/js-commons
TypeScript icon, indicating that this package has built-in type declarations

0.2.4 • Public • Published

@cyann/ts-commons

ts-commons is a js/ts set of helping classes for algorithmic purpose.

It provide:

  • Usefull methods for Array and string
  • Helper classes for objects and functions
  • StringBuilder and PathBuilder
  • Stack
  • Queue

Installation

Install it from NPM: npm install --save @cyann/js-parsec

Examples

Stringbuilder

StringBuilder stand for building strings without using concatenation.

const sb = new StringBuilder()
sb.append('h', 'e')
sb.repeat('l', 2)
sb.append('o')
sb.append(' ')
sb.append('world')

console.log(sb.toString())
// hello world

Package Sidebar

Install

npm i @cyann/js-commons

Weekly Downloads

9

Version

0.2.4

License

ISC

Unpacked Size

41.7 kB

Total Files

73

Last publish

Collaborators

  • cyann