Skip to content

Commit 8f88611

Browse files
committed
update project
1 parent bd18331 commit 8f88611

File tree

4 files changed

+679
-99
lines changed

4 files changed

+679
-99
lines changed

.github/workflows/ci.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
tests:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
os:
11+
- ubuntu-latest
12+
- macos-latest
13+
- windows-latest
14+
node-version:
15+
- 12.x
16+
- 14.x
17+
- 15.x
18+
- 16.x
19+
name: Use ${{ matrix.node-version }} on ${{ matrix.os }}
20+
runs-on: ${{ matrix.os }}
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: actions/setup-node@v1
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
- run: npm install
27+
- run: npm run build --if-present
28+
- run: npm test

README.md

+2-15
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
StringBuilder for Node.js
22
=========
33

4+
[![CI](https://github.com/magiclen/node-stringbuilder/actions/workflows/ci.yml/badge.svg)](https://github.com/magiclen/node-stringbuilder/actions/workflows/ci.yml)
5+
46
An easy and fast in-memory string builder for Node.js.
57

68
## Code Example
@@ -33,21 +35,6 @@ console.log(sb.equalsIgnoreCase('be Added into Any position')); // true
3335
console.log(sb.toBuffer()); // UTF-8 encoded
3436
```
3537

36-
## Installation
37-
38-
Run `npm i` or `npm install` to install.
39-
40-
```bash
41-
npm install node-stringbuilder
42-
```
43-
44-
If you want to save this module to package.json, please add `--save` option.
45-
46-
```bash
47-
npm install node-stringbuilder --save
48-
```
49-
50-
5138
## Features
5239

5340
* Implemented with N-API.

0 commit comments

Comments
 (0)