]> git.proxmox.com Git - rustc.git/blob - src/vendor/minifier/README.md
New upstream version 1.31.0+dfsg1
[rustc.git] / src / vendor / minifier / README.md
1 [![Build Status](https://api.travis-ci.org/GuillaumeGomez/minifier-rs.png?branch=master)](https://travis-ci.org/GuillaumeGomez/minifier-rs) [![Build status](https://ci.appveyor.com/api/projects/status/5bj86vqsah7927tc?svg=true)](https://ci.appveyor.com/project/GuillaumeGomez/minifier-rs)
2
3 # minifier-rs
4
5 Minifier tool/lib for JS/CSS/JSON files.
6
7 This crate provides both a library and binary, depending on your needs.
8
9 ## Usage
10
11 To use the binary, just run like this:
12
13 ```
14 > cargo run test.js
15 ```
16
17 To use the library, add it into your `Cargo.toml` file like this:
18
19 ```toml
20 [dependencies]
21 minifier = "^0.0.1"
22 ```
23
24 Then import it into your code like this:
25
26 ```rust
27 extern crate minifier;
28 ```
29
30 ## WARNING!!
31
32 Please be aware that this is still at a very early stage of development so you shouldn't rely on it too much!