Socket
Socket
Sign inDemoInstall

answer-question-mapper

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    answer-question-mapper

A simple question and answer mapper


Version published
Weekly downloads
2
Maintainers
1
Install size
5.65 kB
Created
Weekly downloads
 

Readme

Source

Answer Question Mapper

A simple question and answer mapper.

Example:

var answerQuestionMapper = require('./..');
var questions = {
  "my test question?": {
    "foo": {
      "test": "hello world"
    },
    "not_in_master": {
      "this": "is_not_shown"
    }
  },
  "do you really want this?": {
    "not": {
      "really": "please"
    }
  }
};
var answers = {
  "my test question?": true,
  "do you really want this?": false
};

var n_obj = answerQuestionMapper({
  "foo": {
    "hey": "ho"
  },
  "not": "DO NOT CHANGE THIS!"
},questions, answers).toObject();

console.log(n_obj); returns:

{ foo: { hey: 'ho', test: 'hello world' },
  not: 'DO NOT CHANGE THIS!' }

FAQs

Last updated on 09 Dec 2013

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc