p-is-hex
v1.0.0
Published
Checks if a string is a valid hex color code, promisified
Downloads
5
Readme
p-is-hex
Checks if a string is a valid hex color code, promisified
Table of contents
Installation
$ npm install --save p-is-hex
Or if you prefer yarn:
$ yarn add p-is-hex
Usage
const is_hex = require('p-is-hex');
is_hex('#abc123')
.then(result => console.log(result)) // true
.catch(err => console.error(err));
Development
$ npm test
Changelog
- 1.0.0
- Initial Release