1.0.8 • Published 6 years ago

stringtypebuffer v1.0.8

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

Installation

For Node.js

npm install stringtypebuffer

Documentation

This readme file contains basic usage examples and details on the full API, including methods, attributes and events.

stringtypebuffer

stringtypebuffer is a class which allows you to arrange strings.

Accessing the stringtypebuffer

In Node.js

var StringBuffer = require('stringtypebuffer').StringBuffer

Basic usage

 var stringbuffer = new StringBuffer()
describe('字符串添加测试', function() {
    it('添加一个字符', function() {
        stringbuffer.pushString('mm')
        console.log(stringbuffer.toString())
    })
    it('添加一个字符数组', function() {
        stringbuffer.pushArray(['c', 'y'])
        console.log(stringbuffer.toString())
    })
    it('添加一行字符', function() {
        stringbuffer.pushLine('s', 'b')
        console.log(stringbuffer.toString())
    })
    it('字符清空', function() {
        stringbuffer.clear()
        console.log(stringbuffer.toString())
    })
    it('释放对象', function() {
        console.log(stringbuffer.toString())
    })
})
1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago