memento-client
simple interface to memento services
usage
var memento = { console // [{href: url, rel: identifier, datetime: timestamp}]} // provide an options object with time to narrow your search! { console // all found from 2010} // also optionally provide your own host's timemap! (defaults to the wayback machine) { // ta-da!}
notes
identifier
is one of:first memento
,prev memento
,next memento
,memento
, orlast memento
.- finds nearest available memento for
url
toopts.time
opts.time
can be any reasonable approximation of a datetime and it should Just Work(tm)- filters out non-mementos from response (timegate and original url)
- first and last entries in response will always be the first and last mementos available.
license
MIT