https://github.com/matype/is-css-length
Check if a string is CSS value of the length
https://github.com/matype/is-css-length
Last synced: 9 months ago
JSON representation
Check if a string is CSS value of the length
- Host: GitHub
- URL: https://github.com/matype/is-css-length
- Owner: matype
- License: other
- Created: 2015-07-25T01:14:56.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2018-12-19T02:50:47.000Z (over 7 years ago)
- Last Synced: 2024-06-01T06:12:53.809Z (about 2 years ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# is-css-length [](https://travis-ci.org/morishitter/is-css-length)
Check if a string is CSS value of the length
## Install
```shell
$ npm install is-css-length
```
## Usage
```js
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