Skip to content

okunishinishi/node-askconfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

askconfig

Build Status Code Climate Code Coverage npm Version JS Standard

Node.js module to ask for configuration via interactive shell

Installation

npm install askconfig --save

Usage

#!/usr/bin/env node
'use strict'

const askconfig = require('askconfig')

askconfig({
  name: 'default-name',
  description: ''
}).then((result) => {
  if (err) {
    console.error(err)
    process.exit(1)
  } else {
    console.log(`Result: ${result}`)
    process.exit(0)
  }
})

License

This software is released under the MIT License.

About

Node.js module to ask for configuration via interactive shell

Resources

License

Stars

Watchers

Forks

Packages

No packages published