@bojangles/txt2json

    0.0.1 • Public • Published

    Transform txt file into json

    Format of txt file

    // separated with \t & \r
    1141269 Ghazni	Ghazni  Asia/Kabul  2018-02-17
    2766429 Sankt Pölten  Sankt Poelten Europe/Vienna 2019-09-05
    ....

    How to use it

    const input = 'path/to/file.txt';
    const output = 'path/where/to/put/file.json';
    const porperties = [
      'id',
      'name',
      'asciiname'
      'tz',
      'lastModified',
    ]
    
    txt2json(input, output, porperties);

    Install

    npm i @bojangles/txt2json

    DownloadsWeekly Downloads

    0

    Version

    0.0.1

    License

    ISC

    Unpacked Size

    3.5 kB

    Total Files

    4

    Last publish

    Collaborators

    • bojangles