1.0.8 • Published 2 years ago

numbot v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Parser for text based logs

NOTE: the API is still a bit unstable.

This is a configurable parser for text based logs. For example

  Year 2021
  Week 1
    Mon running 45min

Would return a parsed JS Object in format

[
  {
    day: "2021-01-30T00:00:00.000Z",
    result: {
      move_to_year: "2021",
    },
  },
  {
    day: "2021-01-09T00:00:00.000Z",
    result: {
      move_to_week: "1",
    },
  },
  {
    day: "2021-01-04T00:00:00.000Z",
    result: {
      monday: "Mon",
      text: ["running"],
      duration_mins: "45",
    },
  },
];

For now, see the test file(s) for example of usage.

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago