Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stackexchange

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stackexchange - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

config.json

2

index.js

@@ -1,1 +0,1 @@

require('./lib/stackexchange');
module.exports = require('./lib/stackexchange');
'use strict';
/**
* Required modules.
*/
var util = require('utile');
var util = require('utile')
, config = require('./config')
, search = require('./methods/search')
, questions = require('./methods/questions');
/**
* Default configuration.
*/
var config = {
'version': 2.1,
'site': 'stackoverflow'
};
/**
* Initialize StackExchange API.

@@ -24,3 +16,11 @@ *

function StackExchange (options) {
this.config = util.mixin(config, options);
// Mitigate options to config.
this.config = config;
Object.keys(options || {}).forEach(function setConfig (key) {
config.set(key, options[key]);
});
// Expose methods.
this.search = search;
this.questions = questions;
}

@@ -27,0 +27,0 @@

{
"name": "stackexchange",
"version": "0.0.1",
"version": "0.0.2",
"description": "Node.js implementation of the stackexchange/stackoverflow API",

@@ -14,2 +14,5 @@ "main": "index.js",

"dependencies": {
"nconf": "0.6.7",
"request": "2.12.0",
"devnull": "0.0.10",
"utile": "0.1.7"

@@ -16,0 +19,0 @@ },

Sorry, the diff of this file is not supported yet

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