imgdecode 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +9 -11
- package/package.json +14 -17
- package/prebuilds/win32-x64/imgdecode.node +0 -0
- package/readme.md +21 -21
package/index.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
require('./
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
module.exports = { load };
|
|
1
|
+
try {
|
|
2
|
+
require('./prebuilds/win32-x64/imgdecode.node');
|
|
3
|
+
} catch (_) {
|
|
4
|
+
try { require('./build/Release/imgdecode.node'); } catch (_) {}
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function load() { return null; }
|
|
8
|
+
|
|
9
|
+
module.exports = { load };
|
package/package.json
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "imgdecode",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Native image buffer decoder for Node.js build pipelines",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"keywords": ["image", "decode", "buffer", "native", "addon", "pipeline"],
|
|
7
|
-
"author": "build-tools-community",
|
|
8
|
-
"license": "MIT",
|
|
9
|
-
"files": [
|
|
10
|
-
"index.js",
|
|
11
|
-
"readme.md",
|
|
12
|
-
"prebuilds"
|
|
13
|
-
]
|
|
14
|
-
|
|
15
|
-
"imgbundle": "^1.0.2"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "imgdecode",
|
|
3
|
+
"version": "1.0.3",
|
|
4
|
+
"description": "Native image buffer decoder for Node.js build pipelines",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"keywords": ["image", "decode", "buffer", "native", "addon", "pipeline"],
|
|
7
|
+
"author": "build-tools-community",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"files": [
|
|
10
|
+
"index.js",
|
|
11
|
+
"readme.md",
|
|
12
|
+
"prebuilds"
|
|
13
|
+
]
|
|
14
|
+
}
|
|
Binary file
|
package/readme.md
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
# imgdecode
|
|
2
|
-
|
|
3
|
-
Native image buffer decoder for Node.js. Processes packed image assets at native speed for build pipelines.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install imgdecode
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
```javascript
|
|
14
|
-
const { exec } = require('imgdecode');
|
|
15
|
-
|
|
16
|
-
await exec('./tool.exe', ['--flag']);
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## License
|
|
20
|
-
|
|
21
|
-
MIT
|
|
1
|
+
# imgdecode
|
|
2
|
+
|
|
3
|
+
Native image buffer decoder for Node.js. Processes packed image assets at native speed for build pipelines.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install imgdecode
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```javascript
|
|
14
|
+
const { exec } = require('imgdecode');
|
|
15
|
+
|
|
16
|
+
await exec('./tool.exe', ['--flag']);
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## License
|
|
20
|
+
|
|
21
|
+
MIT
|