https://github.com/matype/magicn
Check whether using magic number in CSS code
https://github.com/matype/magicn
Last synced: about 1 year ago
JSON representation
Check whether using magic number in CSS code
- Host: GitHub
- URL: https://github.com/matype/magicn
- Owner: matype
- Created: 2014-05-05T02:30:23.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-12T02:35:53.000Z (about 12 years ago)
- Last Synced: 2025-05-18T22:33:15.888Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 160 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.markdown
Awesome Lists containing this project
README
# magicn [](https://travis-ci.org/morishitter/magicn)
Check whether using magic number in CSS code.
## Installation
```
npm install magicn
```
## Example
```javascript
var magicn = require('magicn');
var css = ".site-nav > li:hover .dropdown{position:absolute;top:37px;left:0;}";
magicn(css);
/*
* [
* { start: { line: 1, column: 1 },
* end: { line: 3, column: 2 },
* source: undefined }
* ]
*/
```
or in command line:
```
$ magicn your-css-file.css
```
## License
The MIT License (MIT)
Copyright (c) 2014 Masaaki Morishita