@voxgig/struct-js 0.1.2
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/LICENSE +21 -0
- package/README.md +696 -0
- package/package.json +50 -0
- package/src/struct.js +2580 -0
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@voxgig/struct-js",
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "JSON data structure manipulations — JavaScript port",
|
|
5
|
+
"main": "src/struct.js",
|
|
6
|
+
"type": "commonjs",
|
|
7
|
+
"homepage": "https://github.com/voxgig/struct",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"voxgig",
|
|
10
|
+
"data",
|
|
11
|
+
"struct",
|
|
12
|
+
"structure",
|
|
13
|
+
"json"
|
|
14
|
+
],
|
|
15
|
+
"author": "",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git://github.com/voxgig/struct.git"
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"test": "node --enable-source-maps --test test/struct.test.js test/client.test.js",
|
|
22
|
+
"test-cov": "rm -rf ./coverage && mkdir -p ./coverage && node --experimental-test-coverage --test-reporter=spec --test-reporter-destination=stdout --test-reporter=lcov --test-reporter-destination=coverage/lcov.info --enable-source-maps --test test/struct.test.js",
|
|
23
|
+
"test-some": "node --enable-source-maps --test-name-pattern=\"$npm_config_pattern\" --test test/struct.test.js",
|
|
24
|
+
"walk-bench": "node --enable-source-maps --test test/walk-bench.test.js",
|
|
25
|
+
"lint": "eslint src test",
|
|
26
|
+
"lint:fix": "eslint src test --fix",
|
|
27
|
+
"format": "prettier --write \"src/**/*.js\" \"test/**/*.js\"",
|
|
28
|
+
"format:check": "prettier --check \"src/**/*.js\" \"test/**/*.js\"",
|
|
29
|
+
"doc": "echo doc",
|
|
30
|
+
"inject-version": "node -e \"t=['./src/struct.js'],r=require,fs=r('fs'),v=r('./package.json').version,t.map(f=>fs.writeFileSync(f,fs.readFileSync(f,'utf8').replace(/\\/\\/ VERSION: @voxgig\\/struct-js [^\\n]+/, '// VERSION: @voxgig/struct-js '+v)))\"",
|
|
31
|
+
"clean": "rm -rf coverage node_modules yarn.lock package-lock.json",
|
|
32
|
+
"reset": "npm run clean && npm i && npm test",
|
|
33
|
+
"repo-tag": "REPO_VERSION=`node -e \"console.log(require('./package').version)\"` && echo TAG: javascript/v$REPO_VERSION && git commit -a -m javascript/v$REPO_VERSION && git push && git tag javascript/v$REPO_VERSION && git push --tags;",
|
|
34
|
+
"repo-publish": "npm run clean && npm i && npm run repo-publish-quick",
|
|
35
|
+
"repo-publish-quick": "npm run inject-version && npm run test && npm run doc && npm stage publish --access public --registry https://registry.npmjs.org && npm run repo-tag",
|
|
36
|
+
"repo-publish-dry": "npm run clean && npm i && npm run repo-publish-dry-quick",
|
|
37
|
+
"repo-publish-dry-quick": "npm run inject-version && npm run test && npm run doc && npm stage publish --dry-run --access public --registry https://registry.npmjs.org"
|
|
38
|
+
},
|
|
39
|
+
"license": "MIT",
|
|
40
|
+
"files": [
|
|
41
|
+
"LICENSE",
|
|
42
|
+
"src"
|
|
43
|
+
],
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@eslint/js": "^10.0.1",
|
|
46
|
+
"eslint": "^10.4.1",
|
|
47
|
+
"globals": "^17.6.0",
|
|
48
|
+
"prettier": "^3.8.3"
|
|
49
|
+
}
|
|
50
|
+
}
|