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

jet-api

v0.0.10

Published

This project contains an API Client for Jet.com's API. You can include it in another project by using npm.

Readme

#Introduction

This project contains an API Client for Jet.com's API. You can include it in another project by using npm.

#Installation

Step 1: Install Node v4.1.2 from https://nodejs.org/en/

Step 2: Install NPM if it hasn't already been installed. https://www.npmjs.com/

Step 3: Run npm install from the root directory of this project.

P.S.: You can include a local repository in your package.json like this.

#Integration Test Setup (Recommended):

Currently, the best way to test the library is by debugging while running npm run integration-test

Create a file with the name .env in the root directory of this project. The file has been gitignored already. The contents should be as follows:

TEST_API_USER=your_api_user_key
TEST_API_SECRET=your_api_secret

You can get the TEST_API_USER and TEST_API_SECRET values from www.partner.jet.com.

#Authentication Actions

####Authenticating:

var API_USER = "your api user key here.";
var API_SECRET = "your api secret key here.";

var JetApi = require("jet-api");

var JetConnection;
JetApi.connect(API_USER, API_SECRET).then(function(connection){ JetConnection = connection; });

#Product Actions

####Creating a product var product = { "product_title": "My Product", "standard_product_codes" : [ { "standard_product_code": "123456789012", "standard_product_code_type": "UPC" } ], "multipack_quantity": 1 };

var sku = "fedcba9876543210";

JetConnection.Products.createProduct(product, sku).then(function(){
    /* Will not contain any return object on success. */
});

####Listing product sku's:

var skuList;
JetConnection.Products.listProductSkus().then(function(theSkuList){ skuList = theSkuList; });

####Getting detailed product DTO's:

This has to be called once for each SKU that we need details for.

var dtoList = [];
JetConnection.Products.listProductSkus().then(function(skuList){
    for (var i = 0; i < skuList.length; i++) {
        var sku = skuList[i];
        JetConnection.Products.getDetails(sku).then(function(dto) {
            dtoList.push(dto);
        });
    }
});