jakeburden / shopify-cp

utility module for copying various aspects of shopify sites from a source site to a duplicate (sink) site

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

shopify-cp

utility module for copying various aspects of shopify sites from a source site to duplicate (sink) site

this module is a collection of other shopify-*-cp modules. each method has the same api of cp[method](source, sink)

the return value of each method is a stream response from shopify

Usage

var cp = require('shopify-cp')

// use every method (copy everything we can right now)
Object.keys(cp).forEach(function (api) {
  cp[api](source, sink).pipe(process.stdout)
})

// or use individual methods
cp.pages(source, sink).pipe(process.stdout)
cp.products(source, sink).pipe(process.stdout)

API

var cp = require('shopify-cp')
cp.pages(source, sink)
cp.products(source, sink)

pull request welcome to add more api methods! :)

Auth

SOURCE [string]: 'https://APIKey:Password@SOURCE.myshopify.com'

SINK [string]: 'https://APIKey:Password@SINK.myshopify.com'

replace {APIKey, Password, SOURCE, SINK} with actual values from your shopify admin panel

Install

With npm installed, run

$ npm install shopify-cp

See Also

License

MIT

About

utility module for copying various aspects of shopify sites from a source site to a duplicate (sink) site


Languages

Language:JavaScript 100.0%