modify map script

master
sigonasr2 2 years ago
parent 72a4abd25d
commit 9b922c4eaf
  1. 1
      area0.json
  2. 1
      area1.json
  3. 1
      area11.json
  4. 1
      area2.json
  5. 1
      area3.json
  6. 1
      area4.json
  7. 1
      area5.json
  8. 1
      area6.json
  9. 1
      area7.json
  10. 1
      area8.json
  11. 1
      area9.json
  12. 23
      modifyMap.js
  13. 12
      node_modules/.package-lock.json
  14. 9
      node_modules/fs/README.md
  15. 20
      node_modules/fs/package.json
  16. 17
      package-lock.json
  17. 5
      package.json

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -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

@ -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

@ -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

@ -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

@ -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=="
}
}
}

@ -0,0 +1,5 @@
{
"dependencies": {
"fs": "^0.0.1-security"
}
}
Loading…
Cancel
Save