JSPM

@cyann/js-commons

0.2.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q31053F
  • License ISC

A js/ts set of helping classes for algorithmic.

Package Exports

  • @cyann/js-commons
  • @cyann/js-commons/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@cyann/js-commons) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@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