0.2.2 • Published 8 years ago

command-installer v0.2.2

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

command-installer Build Status

create original command for mac

Install

$ npm install --save command-installer

Usage

create command file.

$ echo 'echo hello world' >> hello.sh
$ chmod +x hello.sh

run.

const commandInstaller = require('command-installer');

commandInstaller(`${__dirname}/hello.sh`, 'hello').then(() => {
	console.log('register hello command');
});

result.

$ hello
// => hello world

API

commandInstaller(commandPath, commandName)

commandPath

Required Type: string

command path

commandName

Required Type: string

command name

License

MIT © akameco