An open API service indexing awesome lists of open source software.

https://github.com/dan503/time-input-polyfill-utils

A library of helper functions designed to make the building of time-input-polyfills easier
https://github.com/dan503/time-input-polyfill-utils

Last synced: about 1 year ago
JSON representation

A library of helper functions designed to make the building of time-input-polyfills easier

Awesome Lists containing this project

README

          

# time-input-polyfill-utils

A library of helper functions designed to make the building of time input polyfill components easier.

When building the React Component version of the polyfill, I realised that there was a huge amount of functionality that could have been shared between the original time input polyfill and the new React component. I didn't really build the original polyfill in a way that made sharing functionality easy though.

This utility library is designed to make as much of the functionality as sharable as possible between different implementations. It also features robust testing using cypress to make sure that no nasty bugs creep their way into the code base.

## Installation

Installed through npm:

```
npm install @time-input-polyfill/utils
```

[View on the npm website](https://www.npmjs.com/package/@time-input-polyfill/utils).

## Testing

`npm run start` to open the Cypress ui and then you can run the unit tests from there.

`npm run test` to run the tests in a terminal instead.