https://github.com/1337programming/monoscope
A Lightweight, easy-to-use shortcut framework for developing your front-end applications.
https://github.com/1337programming/monoscope
Last synced: 5 months ago
JSON representation
A Lightweight, easy-to-use shortcut framework for developing your front-end applications.
- Host: GitHub
- URL: https://github.com/1337programming/monoscope
- Owner: 1337programming
- Created: 2015-08-25T16:05:29.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-05T06:37:17.000Z (over 10 years ago)
- Last Synced: 2025-06-04T23:34:46.944Z (10 months ago)
- Language: JavaScript
- Homepage:
- Size: 3.32 MB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://codeclimate.com/github/1337programming/monoscope)
[](http://badge.fury.io/gh/1337programming/monoscope)
[](https://david-dm.org/1337programming/monoscope)
[](http://issuestats.com/github/1337programming/monoscope)
[](http://issuestats.com/github/1337programming/monoscope)
#Monoscope
Create shortcuts in Node.js for while developing your modern web application locally.

## Install & Run
* Run `npm install`
* Require the monoscope item in your automation development task.
* Write `monoscope.run(shortcuts, options)` within your automation development task. Shortcuts and options are to be setup as defined below.
## Shortcuts
Shortcuts should be an array containing objects, similar to the following:
## Form Items
Form is an optional property that will create a modal with the form items to ask prior to running the action. Form items include the following.
### Text Field
Text fields should be in the form:
```javascript
var text = {
label: 'Text Example', //Text to show
prop: 'testExampleVariableName'
type: 'text',
default: 'My Text'//or omitted
};
```
### Checkbox
Checkboxes should be in the form:
```javascript
var checkbox = {
label: 'Checkbox', //Text to show
prop: 'checkboxVariableName',
type: 'checkbox',
default: true //or false
};
```
### Select
Selects should be in the form:
```javascript
var select = {
label: 'Select', //Text to show
prop: 'selectVariableName',
type: 'select',
options: [
label: 'Example Option',
value: 'Example Option Value',
selected: 'selected' //Or omitted, only one
]
};
```
### Multiselect
Multiselects should be in the form:
```javascript
var multiselect = {
label: 'Multiselect', //Text to show
prop: 'multiselectVariableName',
type: 'multiselect',
options: [{
label: 'Example Option',
value: 'Example Option Value',
selected: 'selected' //Or omitted
}]
};
```
## Options
Options include:
- title: The title of the Monoscope application. Default value of 'Monoscope'
- appPort: The port of the local application being shown. Default value is 9000.
## Cheers

# License
[MIT](/LICENSE)