Skip to content
This repository was archived by the owner on Apr 23, 2026. It is now read-only.

NYPL/date-parser

Repository files navigation

Deprecated

We may choose to un-archive this in the future, but we're deprecating this for now to reduce our maintenance burden as it's not currently in play.

DateParser

A simple lambda wrapping Timetwister. This makes Timetwister's advanced date-parsing available to all library services.

Using DateParser

DateParser expects events in the form

{
  "path": "/",
  "body": "{\"dates\":[\"Jun 1898 - [July 4 1900],Jun 1898 - [July 4 1901]\"]}"
}

where dates can be any array of date strings.

Requirements

  • ruby 2.7

Environment Variables

  • LOG_LEVEL: the standard NYPL log levels, debug, info, etc.

Contributing

  1. Cut PRs from main
  2. Merge into main
  3. Merge into qa and production to deploy

Testing

Invoke tests with rake test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors