anttikon / routahe

MIT License
37 stars 8 forks source link

History tools #8

Closed ronkot closed 7 years ago

ronkot commented 7 years ago

Relates to #4.

This PR has the following functionality:

Routes are of type

{
    from: 'Address 1',
    to: 'Address 2',
    count: 1,
    timestamp: 100
}

This PR does not yet offer command line api to history data, as the api is going to change in near future.

Feel free to comment!

ronkot commented 7 years ago

Updated PR to use file $HOME/.routahe and data structure

{
  history: []
}

...which allows easy future expansions. If new properties are added to data structure, it's probably best to move the basic file handling functions to a separate file for common use.