1.0.0 • Published 9 years ago
p-is-hex
Licence
MIT
Version
1.0.0
Deps
0
Vulns
0
Weekly
0
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