diff --git a/bin/cli.js b/bin/cli.js old mode 100644 new mode 100755 index 3670344..3ada1f7 --- a/bin/cli.js +++ b/bin/cli.js @@ -1,3 +1,4 @@ +#!/usr/bin/env node (function () { 'use strict'; diff --git a/package.json b/package.json index 628c2aa..69fbc91 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,9 @@ "version": "1.0.0", "description": "Like hexdump on *nix, but in JavaScript.", "main": "hexdump.js", + "bin": { + "hexdump.js": "./bin/cli.js" + }, "scripts": { "test": "node bin/cli.js hexdump.js" },