@odata2ts/converter-luxon
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

npm (scoped)

Luxon Converters

Luxon based odata2ts compatible converters for date and time related OData types.

User facing data types:

Conversions

OData Type Result Type Converter Id Description
Edm.DateTimeOffset DateTime dateTimeOffsetToLuxonConverter
Edm.Date DateTime dateToLuxonConverter Luxon's DateTime will still have the time part, which should be ignored by user
Edm.TimeOfDay DateTime timeOfDayToLuxonConverter Luxon's DateTime will still have the date part, which should be ignored by user
Edm.Duration Duration durationToLuxonConverter

Installation

Note: This converter expects, that Luxon itself has been already installed, it doesn't pull Luxon automatically into your project. So if not already present, also install luxon.

npm install --save @odata2ts/converter-luxon

Documentation

Luxon-Converter Documentation

Main Documentation of odata2ts: https://odata2ts.github.io/

Support, Feedback, Contributing

This project is open to feature requests, suggestions, bug reports, usage questions etc. via GitHub issues.

Contributions and feedback are encouraged and always welcome.

See the contribution guidelines for further information.

Spirit

This project has been created and is maintained in the following spirit:

  • adhere to the OData specification as much as possible
    • support any OData service implementation which conforms to the spec
    • allow to work around faulty implementations if possible
  • stability matters
    • exercise Test Driven Development
    • bomb the place with unit tests (code coverage > 95%)
    • ensure that assumptions & understanding are correct by creating integration tests

License

MIT - see License.

Package Sidebar

Install

npm i @odata2ts/converter-luxon

Weekly Downloads

1

Version

0.1.5

License

MIT

Unpacked Size

19.6 kB

Total Files

19

Last publish

Collaborators

  • texttechne