cisv 0.0.41 → 0.0.42
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/cisv/index.js +4 -0
- package/cisv/index.mjs +12 -0
- package/package.json +10 -3
package/cisv/index.js
ADDED
package/cisv/index.mjs
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createRequire } from 'module';
|
|
2
|
+
import { fileURLToPath } from 'url';
|
|
3
|
+
import path from 'path';
|
|
4
|
+
|
|
5
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
6
|
+
const require = createRequire(import.meta.url);
|
|
7
|
+
|
|
8
|
+
const gyp = require('node-gyp-build');
|
|
9
|
+
const addon = gyp(path.join(__dirname, '..'));
|
|
10
|
+
|
|
11
|
+
export const cisvParser = addon.cisvParser;
|
|
12
|
+
export default addon;
|
package/package.json
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cisv",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "The
|
|
3
|
+
"version": "0.0.42",
|
|
4
|
+
"description": "The csv parser on steroids.",
|
|
5
5
|
"author": "sanix<s4nixd@gmail.com>",
|
|
6
6
|
"main": "./build/Release/cisv.node",
|
|
7
7
|
"types": "./types/cisv.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./cisv/index.mjs",
|
|
11
|
+
"require": "./cisv/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
8
14
|
"scripts": {
|
|
9
15
|
"install": "node-gyp rebuild",
|
|
10
16
|
"build": "node-gyp rebuild",
|
|
@@ -20,7 +26,8 @@
|
|
|
20
26
|
"test:perf": "node test/performance.test.js"
|
|
21
27
|
},
|
|
22
28
|
"dependencies": {
|
|
23
|
-
"node-addon-api": "^5.0.0"
|
|
29
|
+
"node-addon-api": "^5.0.0",
|
|
30
|
+
"node-gyp-build": "^4.8.4"
|
|
24
31
|
},
|
|
25
32
|
"devDependencies": {
|
|
26
33
|
"@types/mocha": "^10.0.10",
|