Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
listen-in is a simple to use, Promise based, STDIN listener for node applications
listen-in was written because I wanted a way to pass secure information into Node applications with out adding EXPORT
or configuration files to my user profile.
envToken [String]
: add value to process.env
under this name. (default null
)message [String]
: Message to prompt user with. (default null
)insecure [Boolean]
: Passes user input into the then
.const lstn = require('listen-in');
lstn({
message: 'First Name: ',
insecure: true
})
.then(data => {
console.log(`First Name: ${data}`);
});
import lstn from 'listen-in';
const config = async () => ({
dbName: 'production',
dbUser: 'username',
dbPassword: await lstn({ insecure: true, message: 'Database Password: ' })
});
process.env
:import lstn from 'listen-in';
function getConfigs() {
return lstn({ message: 'Database Password: ', envToken: 'dbp'})
.then(() => ({
dbName: 'production',
dbUser: 'username',
dbPassword: process.env.dbp
}));
}
FAQs
Promise based STDIN listener for node applications
We found that listen-in demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.