Skip to content

Commit

Permalink
Add bin
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jan 20, 2016
1 parent 1518734 commit c0e250c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bin/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env node

'use strict'

var fs = require('fs')
var file = process.argv[2]
var shrthnd = require('..')

var content = fs.readFileSync(file, {encoding: 'utf8'})
process.stdout.write(shrthnd(content).string)
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.0.6",
"description": "Makes your CSS files lighter and more readable by converting and combining CSS properties into their shorthand versions when possible.",
"main": "index.js",
"bin": "bin/index.js",
"files": [
"index.js",
"lib"
Expand Down

0 comments on commit c0e250c

Please sign in to comment.