1.0.0 • Published 7 years ago

p-is-hex v1.0.0

Weekly downloads
2
License
MIT
Repository
-
Last release
7 years ago

p-is-hex

Build Status

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