Security News
UK Officials Consider Banning Ransomware Payments from Public Entities
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
elan-parser
Advanced tools
A simple parsing library for the ELAN NRW XML files. Consumed by the Fruchtfolge model.
npm install elan-parser
Standalone usage
const parser = require('elan-parser')
const { readFileSync } = require('fs')
try {
const xml = readFileSync('path/to/xml')
const gml = readFileSync('path/to/gml')
const data = elan.join(elan.parseXML(xml), elan.parseGML(gml))
// do something with the data (e.g. store in Database)
} catch (e) {
throw new Error(e)
}
In combination with the elan-api
const elanGet = require('elan-api');
const parser = require('elan-parser')
async function getLatestInvekosData(farmNo, pass) {
const xml = await elanGet(farmNo, pass)
const gml = await elanGet(farmNo, pass, {type: 'Geometrien'})
return parser.join(parser.parseXML(xml), parser.parseGML(gml))
}
Place your testing XML files in the test/data
directory.
Upon first run, uncomment the following line in test/test.js
fs.writeFileSync(`test/results/${fileName}.json`,JSON.stringify(data))
and comment out the following lines. Inspect the resulting .json
files for correctness, then revert test/test.js
to its original state.
Once the setup has been completed, you can npm test
as always.
Contribution is highly appreciated! When submitting a PR, make sure to npm test
.
MIT
FAQs
A parser for the ELAN NRW XML/GML files
The npm package elan-parser receives a total of 5 weekly downloads. As such, elan-parser popularity was classified as not popular.
We found that elan-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.