npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ee-shopify

v0.1.4

Published

shopify api wrapper

Readme

ee-shopify

Shopify API wrapper

Suppoorts all APIs and all standard methods.

installation

npm install ee-shopify

build status

Build Status

usage

Constructor

You may set up the shop instance using the API key and the secret and or the api token.

var   ShopifyAPI = require('ee-shopify')
    , log        = require('ee-log');

// instantiate using the apikey && secret
var myShop = new ShopifyAPI({
      shop      : 'myShopName'          // myShopName.myshopify.com
    , key       : 'td0fasf0987..'       // the shopify API key
    , secret    : 'l34k5h..'            // the shopify secret
});

// or instantiate using the api token
var myShop = new ShopifyAPI({
      shop      : 'myShopName'          // myShopName.myshopify.com
    , token     : 'td0fasf0987..'       // the shopify API token
});

Querying the API

When retreiving data from the API two methods find and findOne on the query builders can be used. Both methods take a callback which receives an error object as parameter 1 and a data object as parameter 2

// loading orders of the shop
myShop.order().find(function(err, data) {
    if (err) log(err);
    else {
        // should have recevied some data
        log(data);
    }
});


// load all transactions for the order 312
myShop.order(312).transaction().find(function(err, data) {
    if (err) log(err);
    else {
        // should have recevied some data
        log(data);
    }
});

Storing new Data

new myShop.order({}).save(function(err, data) {
    if (err) log(err);
    else {
        // should have recevied some data
        log(data);
    }
});

Requesting data without the API wrapper

You may also request data without the need to use the api wrapper, you may use the request method for that.

GET Request get(URL, [query], callback);

myShop.get('/orders.json', function(err, data) {
    if (err) log(err);
    else log(data);     // data without envelope
});

POST Request post(URL, [data], callback);

myShop.post('/orders/{id}.json', {key: value}, function(err, data) {
    if (err) log(err);
    else log(data);     // data without envelope
});

PUT Request put(URL, [data], callback);

myShop.put('/orders/{id}.json', function(err, data) {
    if (err) log(err);
    else log(data);     // data without envelope
});

DELETE Request delete(URL, [data], callback);

myShop.delete('/orders/{id}.json', function(err, data) {
    if (err) log(err);
    else log(data);     // data without envelope
});