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
-
Notifications
You must be signed in to change notification settings - Fork 0
brandonmowat/isHex
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Tells you if a js string is a valid hex code.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published