List of NPM packages

RPIO

Example
Links
1
var rpio = require('rpio');
2
3
rpio.init({gpiomem: false, mapping: 'physical'}); //Physical pin mapping
4
rpio.open(7, rpio.OUTPUT, rpio.HIGH); //Setting GPIO 7 as an Output and default High
5
rpio.open(35, rpio.INPUT);
6
7
Copied!
npm: rpio
npm

Help- Handles "-h, --help" CLI commands

Example
Links
1
//Put information to return in usage.txt file
2
3
var help = require('help')('usage.txt')
4
var args = process.argv.splice(2)
5
if (args[0] === '-h' || args[0] === '--help' || args[0] === 'help') {
6
// process prints contents of `usage.txt` and returns
7
return help()
8
}
9
10
// the first arg must be a number
11
if (isNaN(args[0])) {
12
// process prints contents of `usage.txt` and exits with code 1
13
return help(1)
14
}
Copied!
GitHub - evanlucas/help: substack way of --help
GitHub

Simple JSONdb- A simple, no-frills, JSON storage

Example
Links
1
const JSONdb = require('simple-json-db');
2
const db = new JSONdb('/path/to/your/database.json');
3
4
//Set a key
5
db.set('key', 'value');
6
//The key parameter must be a string, value can be whatever kind of
7
//object can be stored in JSON format. JSON.stringify() is your friend!
8
9
//Get a key
10
db.get('key');
11
//The key parameter must be a string. If the key exhists its value is
12
//returned, if it doesn't the function returns undefined.
13
14
//Check a key
15
db.has('key');
16
//The key parameter must be a string. If the key exhists true is returned,
17
//if it doesn't the function returns false.
18
19
//Delete a key
20
db.delete('key');
21
//The key parameter must be a string. The function returns as per the
22
//delete operator if the key exhists, else it returns undefined.
23
24
//Sync to disk
25
db.sync();
26
//This function writes the JSON storage object to the file path
27
//specified as the parameter of the main constructor. Consult
28
//the Options section for usage details; on default options there
29
//is no need to manually invoke it.
30
31
//Access JSON storage
32
db.JSON();
33
//This will return a copy of the internal JSON storage object, for
34
//you to tinker with and loop over.
35
36
//Replace JSON storage
37
db.JSON({ data });
38
//Giving a parameter to the JSON function makes the object passed
39
//replace the internal one. Be careful, as there's no way to recover
40
//the old object if the changes have already been written to disk.
Copied!
npm: simple-json-db
npm

Idea- A lightweight CLI tool and module for keeping ideas in a safe place quick and easy

Example
Links
1
npm install --global idea
2
3
$ idea --help
4
idea help
5
usage: idea [command] <idea|filter|id>
6
7
A lightweight CLI tool and module for keeping your ideas in a safe place quick and easy.
8
9
[command]
10
create <idea> Creates and saves a new idea. Example: `idea create "Implement something very cool"`
11
list Lists all ideas. Example: `idea list`
12
filter <filter> Lists filtered ideas. Example: `idea filter '{"state": "SOLVED"}'`
13
solve <id> Solves an idea. Example `idea solve 1`
14
help Prints this help.
15
16
Documentation can be found at https://github.com/IonicaBizau/idea
Copied!
npm: idea
npm

Boxen- command line box maker

Example
Links

Create boxes in the terminal

npm: boxen
npm

Prompts- simple command line interface (questions)

Example
Links
npm: prompts
npm

Progress- simple node progress bar

Example
Links
npm: progress
npm

Config- .JSON configuration files

Example
Links
npm: config
npm

Enquirer- command line interface

Example
Links
npm: enquirer
npm

Inquirer- A collection of common interactive command line user interfaces

Example
Links
npm: inquirer
npm

Figlet- Ascii text generator

Example
Links
npm: figlet
npm

Minimist- handles command line arguments

Example
Links
npm: minimist
npm

npm: fs-extra
npm
npm: remarkable
npm
npm: uglify-js2
npm
npm: msg-router
npm
npm: commander
npm
PDFKit
npm: gsap
npm
npm: @google/model-viewer
npm
npm: three
npm
npm: javascript-barcode-reader
npm
npm: time-stamp
npm
npm: chalk-animation
npm
Styling Output from Command-line Node.js Scripts with Chalk
alligatorio
JavaScript: Remove Duplicates from an Array
JavaScript Tutorial
Find the length of a JavaScript object - GeeksforGeeks
GeeksforGeeks
chart.js line 2.0 - JSFiddle - Code Playground
Vertical Bar Chart | Chart.js
https://www.microfocus.com/documentation/silk-test/200/en/silktestworkbench-help-en/SILKTEST-21EEFF3F-DIFFERENCEBETWEENTEXTCONTENTSINNERTEXTINNERHTML-REF.html
www.microfocus.com
How to check if an item is selected from an HTML drop down list?
Stack Overflow
npm-pack | npm Docs
use moment.js in html Code Example
MomentJS - Quick Guide
OS | Node.js v17.8.0 Documentation
npm: onoff
npm
npm: log-symbols
npm
Last modified 1mo ago