Skip to content

TransDB-de/Tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Trans-db Tools

Content

About

This repository conatins a collection of deno scripts or node applications, meant to aid the project in various ways. The scripts require no additional dependencies.

You will find compiled windows binaries of the tools under releases. The deno compile feature is experimental! Some tools may not behave as expected.

Note, that due to how deno handles third-party modules, running a script for the first time requires an internet connection.

GeoDbJson

Info

Download the 'DE.tab' entries from OpenGeoDb and converts them into a JSON format more suitable to the project. Only the used fields are imported, and the "lat" and "lon" fields are converted to a GeoJSON point object.

Usage

Use deno run -A GeoDbJson/main.ts to run the script, or download a compiled binary and run it. The resulting JSON document will appear in the current working directory.

Download

You can also download the JSON document directly from releases.

EntryGenerator

The entry generator generates random entries for test purposes and save it into a JSON file.

Usage

  1. Clone the repo
  2. cd EntryGenerator
  3. npm install
  4. node main.js <arguments>

Arguments

  • -c <count>, --count <count> Integer that defines how many entries should be generated
  • -f, --format Format entries in JSON file with indent and line breaks
  • -a <percent>, --approved <percent> The percentage of entries that are approved by default