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

greed

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

greed

graphql client

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-63.64%
Maintainers
1
Weekly downloads
 
Created
Source

Greed

A tiny unopinionated 1kb extendable GraphQL client

Travis Codecov branch version downloads Donate MIT License

This library is meant to implement a minimal framework agnostic GraphQL client. It allows you to query and create mutations on the client. Greed can be easily extended by other libraries to provide more functionality.

Install

npm install --save greed

Shape

Greed:: a -> function
Greed({
  url: String,
  token: String,
  plugins: {
    pre: [Function],
    post: [Function]
  }
});
In Practice

It should now look like this:

import Greed from 'greed';

var gql = Greed({
  url: 'https://localhost:3000/',
  token: 'someCrazySuperSecretToken',
  plugins: {
    pre: [
      
    ],
    post: [

    ]
  }
});

gql(`{
  person(personID: 2){
    name
    species{
      name
    }
  }
}`);

License

MIT

Keywords

FAQs

Package last updated on 12 Nov 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