Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jakeburden/shopify-cp
utility module for copying various aspects of shopify sites from a source site to a duplicate (sink) site
https://github.com/jakeburden/shopify-cp
Last synced: 1 day ago
JSON representation
utility module for copying various aspects of shopify sites from a source site to a duplicate (sink) site
- Host: GitHub
- URL: https://github.com/jakeburden/shopify-cp
- Owner: jakeburden
- Created: 2018-03-31T17:44:46.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-31T17:53:08.000Z (almost 7 years ago)
- Last Synced: 2024-12-12T07:27:40.051Z (29 days ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```js
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
```js
var cp = require('shopify-cp')
``````js
cp.pages(source, sink)
``````js
cp.products(source, sink)
```pull request welcome to add more api methods! :)
## Auth
SOURCE [string]: 'https://APIKey:[email protected]'
SINK [string]: 'https://APIKey:[email protected]'
replace {APIKey, Password, SOURCE, SINK} with actual values from your shopify admin panel
## Install
With [npm](https://npmjs.org/) installed, run
```
$ npm install shopify-cp
```## See Also
- [`jekrb/shopify-pages-cp`](https://github.com/jekrb/shopify-pages-cp)
- [`jekrb/shopify-products-cp`](https://github.com/jekrb/shopify-products-cp)## License
MIT