From 3588b5cb5b8b1ec9fbf55542ed3d31d9421d0aee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nemanja=20Nedeljkovi=C4=87?= Date: Fri, 20 Jan 2017 02:00:03 +0100 Subject: [PATCH 1/2] NPM Package --- package.json | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 package.json diff --git a/package.json b/package.json new file mode 100644 index 0000000..32e1ad5 --- /dev/null +++ b/package.json @@ -0,0 +1,27 @@ +{ + "name": "angular-terminal", + "version": "1.0.0", + "description": "A port of jQuery.terminal into AngularJS", + "main": "angular-terminal.js", + "directories": { + "example": "examples" + }, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/mattlo/angular-terminal.git" + }, + "keywords": [ + "angular", + "jquery", + "terminal" + ], + "author": "Matt Lo ", + "license": "SEE LICENSE IN LICENSE", + "bugs": { + "url": "https://github.com/mattlo/angular-terminal/issues" + }, + "homepage": "https://github.com/mattlo/angular-terminal#readme" +} From 985ad061f0f8c95155f693c4a012bc9f68ab6def Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nemanja=20Nedeljkovi=C4=87?= Date: Fri, 20 Jan 2017 03:03:36 +0100 Subject: [PATCH 2/2] Prompt --- angular-terminal.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/angular-terminal.js b/angular-terminal.js index bd867fd..f6bf3a8 100644 --- a/angular-terminal.js +++ b/angular-terminal.js @@ -13,7 +13,8 @@ angular // user input commands $rootScope.$emit(namespace, input, terminal); }, { - greetings: attrs.greetings || '' + greetings: attrs.greetings || '', + prompt: attrs.prompt || ">" }); // receiving echo commands\ @@ -22,4 +23,4 @@ angular }); } }; -}]); \ No newline at end of file +}]);