Skip to content

Commit 10bb774

Browse files
committed
merge branch,support array
1 parent ffc0857 commit 10bb774

File tree

3 files changed

+69
-13
lines changed

3 files changed

+69
-13
lines changed

.gitignore

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Windows image file caches
2+
Thumbs.db
3+
ehthumbs.db
4+
5+
# Folder config file
6+
Desktop.ini
7+
8+
# Recycle Bin used on file shares
9+
$RECYCLE.BIN/
10+
11+
# Windows Installer files
12+
*.cab
13+
*.msi
14+
*.msm
15+
*.msp
16+
17+
# Windows shortcuts
18+
*.lnk
19+
20+
# =========================
21+
# Operating System Files
22+
# =========================
23+
24+
# OSX
25+
# =========================
26+
27+
.DS_Store
28+
.AppleDouble
29+
.LSOverride
30+
31+
# Thumbnails
32+
._*
33+
34+
# Files that might appear in the root of a volume
35+
.DocumentRevisions-V100
36+
.fseventsd
37+
.Spotlight-V100
38+
.TemporaryItems
39+
.Trashes
40+
.VolumeIcon.icns
41+
42+
# Directories potentially created on remote AFP share
43+
.AppleDB
44+
.AppleDesktop
45+
Network Trash Folder
46+
Temporary Items
47+
.apdisk
48+
49+
node_modules

Readme.md

+11-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# Binary data structure transformation for JavaScript
2-
## Forked from node-cppMsg because it lacked support for arrays.
32

43
## Installation
54

65
Using npm:
76

8-
$ npm install cppMsg-dynamic
7+
$ npm install cppMsg
98

109
To run the tests:
1110

@@ -64,7 +63,7 @@ struct msg{
6463
unsigned int processID;
6564
struct head testObj;
6665
long long testin64;
67-
float floatArray3[3];
66+
float floatArray3[3];
6867
};
6968
```
7069
Nodejs code:
@@ -129,15 +128,19 @@ Nodejs code:
129128
console.log( msg.encode());
130129
```
131130
## Changelog
131+
### 1.0.2
132+
1. merge darnold79 change,add array support.
133+
134+
### 1.0.1
135+
1. string type add encode support(using iconv-lite).
136+
132137
### 1.0.0
133-
1. forked from node-cppMsg and added array support.
134-
138+
1. init.
139+
135140

136141
## LICENSE
137142

138143
The MIT License (MIT)
139144

140-
Copyright (c) 2016 Shudingbo (node-cppMsg)
145+
Copyright (c) 2017 Shudingbo
141146
Copyright (c) 2017 darnold79 (node-cppMsg-dynamic)
142-
143-

package.json

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cppmsg-dynamic",
3-
"version": "1.0.0",
4-
"description": "C++ stuct encoding/decoding with support for (dynamic) arrays. Fork of node-cppMsg.",
3+
"version": "1.0.2",
4+
"description": "C++ stuct encoding/decoding with support for (dynamic) arrays.",
55
"main": "cppMsg.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1"
@@ -12,16 +12,20 @@
1212
"struct"
1313
],
1414
"author": {
15-
"name":"darnold79",
16-
15+
"name":"darnold79",
16+
1717
},
18+
"contributors":[{
19+
"name":"darnold79",
20+
21+
}],
1822
"license": "MIT",
1923
"dependencies": {
2024
"iconv-lite": "~0.4.13"
2125
},
2226
"repository": {
2327
"type": "git",
24-
"url": "https://github.com/darnold79/node-cppMsg-dynamic.git"
28+
"url":"https://github.com/shudingbo/node-cppMsg.git"
2529
},
2630
"engines": {
2731
"node": ">=0.8.0"

0 commit comments

Comments
 (0)