modify map script
This commit is contained in:
parent
72a4abd25d
commit
9b922c4eaf
1
area0.json
Normal file
1
area0.json
Normal file
File diff suppressed because one or more lines are too long
1
area1.json
Normal file
1
area1.json
Normal file
File diff suppressed because one or more lines are too long
1
area11.json
Normal file
1
area11.json
Normal file
File diff suppressed because one or more lines are too long
1
area2.json
Normal file
1
area2.json
Normal file
File diff suppressed because one or more lines are too long
1
area3.json
Normal file
1
area3.json
Normal file
File diff suppressed because one or more lines are too long
1
area4.json
Normal file
1
area4.json
Normal file
File diff suppressed because one or more lines are too long
1
area5.json
Normal file
1
area5.json
Normal file
File diff suppressed because one or more lines are too long
1
area6.json
Normal file
1
area6.json
Normal file
File diff suppressed because one or more lines are too long
1
area7.json
Normal file
1
area7.json
Normal file
File diff suppressed because one or more lines are too long
1
area8.json
Normal file
1
area8.json
Normal file
File diff suppressed because one or more lines are too long
1
area9.json
Normal file
1
area9.json
Normal file
File diff suppressed because one or more lines are too long
23
modifyMap.js
Normal file
23
modifyMap.js
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
const fs = require('fs');
|
||||||
|
|
||||||
|
mapData=[]
|
||||||
|
|
||||||
|
for (file of ["area0.json",
|
||||||
|
"area1.json",
|
||||||
|
"area2.json",
|
||||||
|
"area3.json",
|
||||||
|
"area4.json",
|
||||||
|
"area5.json",
|
||||||
|
"area6.json",
|
||||||
|
"area7.json",
|
||||||
|
"area8.json",
|
||||||
|
"area9.json",
|
||||||
|
"area11.json"]) {
|
||||||
|
mapData=[...mapData,JSON.parse(fs.readFileSync(file))]
|
||||||
|
}
|
||||||
|
|
||||||
|
for (data of mapData){
|
||||||
|
for (layer of data.layers) {
|
||||||
|
console.log(layer.data)
|
||||||
|
}
|
||||||
|
}
|
12
node_modules/.package-lock.json
generated
vendored
Normal file
12
node_modules/.package-lock.json
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"name": "Ironbun",
|
||||||
|
"lockfileVersion": 3,
|
||||||
|
"requires": true,
|
||||||
|
"packages": {
|
||||||
|
"node_modules/fs": {
|
||||||
|
"version": "0.0.1-security",
|
||||||
|
"resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz",
|
||||||
|
"integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
9
node_modules/fs/README.md
generated
vendored
Normal file
9
node_modules/fs/README.md
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# Security holding package
|
||||||
|
|
||||||
|
This package name is not currently in use, but was formerly occupied
|
||||||
|
by another package. To avoid malicious use, npm is hanging on to the
|
||||||
|
package name, but loosely, and we'll probably give it to you if you
|
||||||
|
want it.
|
||||||
|
|
||||||
|
You may adopt this package by contacting support@npmjs.com and
|
||||||
|
requesting the name.
|
20
node_modules/fs/package.json
generated
vendored
Normal file
20
node_modules/fs/package.json
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"name": "fs",
|
||||||
|
"version": "0.0.1-security",
|
||||||
|
"description": "",
|
||||||
|
"main": "index.js",
|
||||||
|
"scripts": {
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/npm/security-holder.git"
|
||||||
|
},
|
||||||
|
"keywords": [],
|
||||||
|
"author": "",
|
||||||
|
"license": "ISC",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/npm/security-holder/issues"
|
||||||
|
},
|
||||||
|
"homepage": "https://github.com/npm/security-holder#readme"
|
||||||
|
}
|
17
package-lock.json
generated
Normal file
17
package-lock.json
generated
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"name": "Ironbun",
|
||||||
|
"lockfileVersion": 3,
|
||||||
|
"requires": true,
|
||||||
|
"packages": {
|
||||||
|
"": {
|
||||||
|
"dependencies": {
|
||||||
|
"fs": "^0.0.1-security"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/fs": {
|
||||||
|
"version": "0.0.1-security",
|
||||||
|
"resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz",
|
||||||
|
"integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
5
package.json
Normal file
5
package.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"dependencies": {
|
||||||
|
"fs": "^0.0.1-security"
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user