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

hannoverjs

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hannoverjs

Convenience wrapper for `got` to interact with the HannoverJS API

  • 2.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-30%
Maintainers
1
Weekly downloads
 
Created
Source

hannoverjs

Build Status npm XO code style styled with prettier

Convenience wrapper for got to interact with the HannoverJS API

Install

npm install hannoverjs

Usage

const hannoverjs = require('hannoverjs')

hannoverjs('/').then(res => {
  console.log(res.body)
})

hannoverjs.getEvents().then(res => {
  console.log(res.body)
})

API

It's a GET request by default, but can be changed in options. options are the same as in got, but with some defaults.

options
endpoint

Type: string
Default: https://hannoverjs-api.now.sh

headers

Type: Object
Default: { 'user-agent': 'https://github.com/hannoverjs/hannoverjs' }

json

Type: boolean
Default: true

hannoverjs(path, [options])

Returns the response from a custom path.

path

Type: string

Custom path which will be appended to options.endpoint. Must start with /.

hannoverjs.getEvents([options])

Returns the response from /events.

hannoverjs.getTalks([options])

Returns the response from /talks.

hannoverjs.getOrganizers([options])

Returns the response from /organizers.

Keywords

FAQs

Package last updated on 12 Apr 2018

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