Skip to content

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

Notifications You must be signed in to change notification settings

jakeburden/shopify-cp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published