JSPM

cistringbuilder

0.1.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q31873F
  • License ISC

Node.js string builder based on c#

Package Exports

  • cistringbuilder

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 (cistringbuilder) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

CIStringBuilder

Node.js string builder based on c#

###Install

npm install cistringbuilder

###Setup

var CIStringBuilder = require('cistringbuilder');

###Constructor Creates a new string builder object

Example

    var sb = new CIStringBuilder();
    
    var sb = new CIStringBuilder('testing');

###append Appends a string to the string builder

    sb.append('string to append ');

###appendLine Appends a string followed by the \r\n

    sb.appendLine('this string will be appeneded')

###appendFormat Appends a foramtted string e.g

    sb.appendForamt("this {0} will be {1}",['will','refomated']);

this will create a string in the string builder with the {x} replaced with the correct value from the array

###toString

This function will convert all the text added to the string builded in to one string.

so sb.toString() would create the following

string to append this string will be appended\r\nthis will be reformated