tell-me-when
Version:
human relative date and time parser
27 lines • 560 B
JavaScript
import { getGrammar } from "./util/getGrammar.mjs";
import * as base from "./util/parse.mjs";
export { applyDateFns } from "./util/applyDateFns.mjs";
export { ParseError } from "./util/ParseError.mjs";
export function tellMeWhen(when, {
locales,
grammar = getGrammar({
locales
}),
...options
} = {}) {
return base.tellMeWhen(when, {
...options,
grammar
});
}
export function parse(input, {
locales,
grammar = getGrammar({
locales
})
} = {}) {
return base.parse(input, {
grammar
});
}
//# sourceMappingURL=index.mjs.map