🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

oc-registry-graphql-express-middleware

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oc-registry-graphql-express-middleware

OpenComponents Registry GraphQL Express middleware.

1.1.5
latest
Source
npm
Version published
Maintainers
1
Created
Source

oc-registry-graphql-express-middleware

Greenkeeper badge

Build Status

OpenComponents Registry GraphQL Express middleware.

How to install

npm add oc-registry-graphql-express-middleware

How to use it w/in your Registry

require('babel-core/register');
require('babel-polyfill');

const graphql = require('oc-registry-graphql-express-middleware');

const options = {
  baseUrl: configuration.baseUrl,
  graphiql: configuration.discovery,
  dependencies: configuration.dependencies
};

registry.app.use('/graphql', graphql(options));

N.B.: configuration in the example above is the object used to configure the OpenComponents Registry.

query-registry

Keywords

express

FAQs

Package last updated on 18 Dec 2017

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