Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@sap-devx/inquirer-gui
Advanced tools
inquirer-gui
is a UI component that displays Inquirer.js-compliant questions in an interactive HTML form.
There are several use-cases for the consuming inquirer-gui
component:
We provide examples for some of the above use-cases.
First, clone this directory:
git clone https://github.com/SAP/inquirer-gui
Use the provided sample-app
:
npm install
cd sample-app
npm install
npm run serve
This will run the web server on localhost
on an available port. Open the provided link in the browser.
Use the provided sample-app
and websocket-server
:
npm install
cd websocket-server
npm install
If using Visual Studio Code, run the WebSocket Server
debug configuration. This will start the sample WebSocket server that listens for requests on port 8081
.
cd sample-app
npm install
npm run serve
This will run the web server on localhost
on an available port. Open the provided link in the browser.
If writing a Vue application, simply add the following line to your <template>
tag:
<Form ref="form" :questions="questions" @answered="onAnswered" />
The questions
property is an inquirer.js-compliant array of questions. E.g.:
[
{
type: "input",
name: "name",
message: "Your name (frontend)",
default: "Joe",
validate: function (input) {
if (input.length >= 2) {
return true;
} else {
return "Name must be at least 2 characters long";
}
}
}
]
The answered
event is fired when any answer is changed:
answers
, contains all answers.allValid
, can be used to, for example, enable or disable a Next
button.The samples provided consume the inquirer-gui
component directly from source code.
In real life scenarios, the component should be consumed from npm
:
npm install @sap-devx/inquirer-gui --save
import Form from ...
with:import Form from "@sap-devx/inquirer-gui/dist/form.umd";
To get more help, support and information please open a github issue.
Contributing information can be found in the CONTRIBUTING.md file.
Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file.
FAQs
Inquirer Graphical User Interface
The npm package @sap-devx/inquirer-gui receives a total of 4 weekly downloads. As such, @sap-devx/inquirer-gui popularity was classified as not popular.
We found that @sap-devx/inquirer-gui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.