# netsuite-role-inquirer

> Let the user select a NetSuite role interactively using the command line

Latest version **0.0.3** (published 2018-01-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install netsuite-role-inquirer
pnpm add netsuite-role-inquirer
yarn add netsuite-role-inquirer
bun add netsuite-role-inquirer
```

Provides the command `netsuite-role-inquirer`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2018-01-22 |
| First published | 2018-01-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | sgurin |
| Maintainers | cancerberosgx |

## Links

- npm: https://www.npmjs.com/package/netsuite-role-inquirer
- npm.io page: https://npm.io/package/netsuite-role-inquirer

## Dependencies (2)

- [request](https://npm.io/package/request.md) ^2.83.0
- [inquirer](https://npm.io/package/inquirer.md) ^5.0.1

## Recent versions

- 0.0.3 (latest) — 2018-01-22
- 0.0.2 — 2018-01-22
- 0.0.1 — 2018-01-22

## README

# What

Allows the user to select interactively one of its NetSuite roles using the command line. 

It supports both a command line application and a node.js API so other programs can re-use it (like developer tools)

# Install and use the command line interface

```sh
$ sudo npm install -g netsuite-role-inquirer
$ netsuite-role-inquirer
```

# Usage its node.js API

```sh
$ npm install netsuite-role-inquirer
```

Let's assume that in your project's developer tools, at some point you want to inquire the user to select one of its roles interactively by asking mail, password and then roles:

```javascript
const roleInquirer = require('netsuite-role-inquirer').main
const {credentials, roles, role} = await roleInquirer()
```

Where `role` will be the role selected by the user, `roles` all the user's roles and `credentials` user mail, password, etc

Another case: we want to let our user to select one of its roles, given a known email and password and molecule "sandbox": 

```javascript
const roleInquirer = require('netsuite-role-inquirer').main
const {credentials, roles, role} = await roleInquirer({
    email: 'known@email.com', 
    password: 'se$cret', 
    molecule: 'sandbox',
})
```

In this case the user won't be asked by its email and password, just to select a role using the given NetSuite molecule (sandbox).

---
_Source: https://npm.io/package/netsuite-role-inquirer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
