Skip to content

morishxt/is-css-length

Repository files navigation

is-css-length Build Status

Check if a string is CSS value of the length

Install

$ npm install is-css-length

Usage

var isLength = require('is-css-length')

isLength('10px')
//=> true
isLength('10')
//=> false
isLength('0em')
//=> true
isLength('0')
//=> true

License

The MIT License (MIT)

Copyright (c) 2015 Masaaki Morishita

About

Check if a string is CSS value of the length

Resources

License

Stars

Watchers

Forks

Packages

No packages published