Browse Source

Initial commit

master
Ashton Charbonneau 5 years ago
commit
3e919a9368
3 changed files with 17 additions and 0 deletions
  1. 2
    0
      .gitignore
  2. 8
    0
      crass-stdin.js
  3. 7
    0
      package.json

+ 2
- 0
.gitignore View File

1
+package-lock.json
2
+

+ 8
- 0
crass-stdin.js View File

1
+const getStdin = require('get-stdin');
2
+const crass = require('crass');
3
+
4
+(async () => {
5
+	let input = await getStdin();
6
+	let minified = crass.parse(input).optimize({o1: true});
7
+	console.log(minified.toString());
8
+})();

+ 7
- 0
package.json View File

1
+{
2
+  "name": "crass-stdin",
3
+  "version": "1.0.0",
4
+  "description": "Run crass with standard input.",
5
+  "main": "crass-stdin.js",
6
+  "author": "Ashton Charbonneau"
7
+}

Loading…
Cancel
Save