Skip to content

brandonmowat/isHex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

isHex

Usage

import { isHex, isHexColor } from isHex; // ES6
// var IsHex = require('isHex'); // ES5

console.log(isHex("FFF")); // returns true
console.log(isHexColor("#FFFFFF")); // returns true
console.log(isHexColor("FFFFFF")); // returns true
console.log(isHex("FGF")); // returns false

About

Tells you if a js string is a valid hex code.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published