p-is-hex

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i p-is-hex

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • sydev