Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johno/is-minified
Check whether a CSS or JS string is minified.
https://github.com/johno/is-minified
Last synced: 2 months ago
JSON representation
Check whether a CSS or JS string is minified.
- Host: GitHub
- URL: https://github.com/johno/is-minified
- Owner: johno
- License: mit
- Created: 2015-02-10T04:58:11.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-10T06:54:31.000Z (almost 10 years ago)
- Last Synced: 2024-10-19T17:31:08.606Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 121 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# is-minified [![Build Status](https://secure.travis-ci.org/johnotander/is-minified.png?branch=master)](https://travis-ci.org/johnotander/is-minified)
Check whether a CSS or JS string is minified.
## Installation
```bash
npm install --save is-minified
```## Usage
```javascript
var isMinified = require('is-minified');isMinified('.foo{color: blue}'); // => true
isMinified('function(){return true}'); // => trueisMinified('.foo\n{\n\tcolor:blue\n}'); // => false
```## License
MIT
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull RequestCrafted with <3 by John Otander ([@4lpine](https://twitter.com/4lpine)).
***
> This package was initially generated with [yeoman](http://yeoman.io) and the [p generator](https://github.com/johnotander/generator-p.git).