New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

question-match

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

question-match

Plugin for question-store that adds a `match` method for filtering out questions to ask using glob patterns or regex.

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5.4K
decreased by-3.83%
Maintainers
1
Weekly downloads
 
Created
Source

question-match NPM version Build Status

Plugin for question-store that adds a match method for filtering out questions to ask using glob patterns or regex.

Install

Install with npm:

$ npm i question-match --save

Also see question-force.

Usage

var match = require('question-match');
var Questions = require('question-store');
var questions = new Questions();

// register the plugin
questions.use(match());

// pre-load answer data from package.json and
// set some questions to ask
questions.setData(require('../package'));
  .set('author.name', 'Author name?')
  .set('author.username', 'Author username?')
  .set('author.url', 'Author url?')

  .set('project.name', 'What is the project name?')
  .set('project.desc', 'What is the project description?');

// only ask questions with keys that match `*.name`
questions.match('*.name')
  .ask(function(err, answer) {
    console.log(answer)
  });

You might also be interested in these projects:

  • answer-store: Store answers to user prompts, based on locale and/or current working directory. | homepage
  • question-cache: A wrapper around inquirer that makes it easy to create and selectively reuse questions. | homepage
  • question-store: Ask questions, persist the answers. Basic support for i18n and storing answers based on current… more | homepage

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Author

Jon Schlinkert

License

Copyright © 2016 Jon Schlinkert Released under the MIT license.


This file was generated by verb on January 28, 2016.

Keywords

FAQs

Package last updated on 09 Mar 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc