1.0.2 • Published 5 years ago

supports-input-type v1.0.2

Weekly downloads
65
License
AGPL-3.0
Repository
github
Last release
5 years ago

supports-input-type

Tiny library for testing browser support of type attributes on input tags written in typescript.

Usage

Install package:

npm install supports-input-type

Test if the browser support an input type:

import supportsInputType from 'supports-input-type';

if (supportInputType('date')) {
  // render a native <input type="date" />
} else {
  // render a custom date input field
}

License

This library is licensed under the Mozilla Public License Version 2.0.

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago