Skip to content

Commit

Permalink
Merge pull request #6 from Kikobeats/bin
Browse files Browse the repository at this point in the history
Add bin
  • Loading branch information
frankmarineau authored Jun 4, 2020
2 parents 6f9edd1 + c0e250c commit 5ff1031
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 5ff1031

Please sign in to comment.