From 9f7cfeb440ee2feae5dc29a3281526758961dc93 Mon Sep 17 00:00:00 2001 From: AaronCoplan Date: Fri, 15 Dec 2017 16:37:02 -0500 Subject: [PATCH] Made runnable via command line `staticrypt`. --- cli/index.js | 2 ++ cli/package.json | 27 +++++++++++++++------------ 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/cli/index.js b/cli/index.js index 13e0b2d..bf77627 100644 --- a/cli/index.js +++ b/cli/index.js @@ -1,3 +1,5 @@ +#!/usr/bin/env node + 'use strict'; var CryptoJS = require("crypto-js"); diff --git a/cli/package.json b/cli/package.json index 63703e8..e4d8fc0 100644 --- a/cli/package.json +++ b/cli/package.json @@ -1,14 +1,17 @@ { - "name": "staticrypt-cli", - "version": "1.0.0", - "description": "", - "main": "index.js", - "scripts": { - "test": "node test.js" - }, - "dependencies": { - "crypto-js": ">=3.1.9-1" - }, - "author": "Aaron Coplan", - "license": "UNLICENSED" + "name": "staticrypt-cli", + "version": "1.0.0", + "description": "", + "main": "index.js", + "bin": { + "staticrypt": "./index.js" + }, + "scripts": { + "test": "node test.js" + }, + "dependencies": { + "crypto-js": ">=3.1.9-1" + }, + "author": "Aaron Coplan", + "license": "UNLICENSED" }