sharinpix-import
Lightweight Node Package to import images using SharinPix.
Last updated 2 years ago by ombr .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install sharinpix-import 
SYNC missed versions from official npm registry.

SharinPix Import

Installation

$ npm install -g sharinpix-import

Usage

Unix
$ env SHARINPIX_URL=sharinpix://secret_url_you_can_find_in_your_admin_dashboard sharinpix-import sample.csv > success.csv 2> error.csv
Windows
C:\foo> set SHARINPIX_URL=sharinpix://secret_url_you_can_find_in_your_admin_dashboard
C:\foo> sharinpix-import sample.csv > success.csv 2> error.csv
  • sample.csv refers to the path of the file containing the images to be imported.
  • success.csv refers to the path of the log file containing only successfully-imported images.
  • error.csv refers to the path of the error log file containing only images that failed to be imported.

The structure of the sample.csv file should be in the following form:

album_id_1;image_url_1;tag1,tag2,tag3;{"key":"value"}
album_id_2;image_url_2;tag1,tag2,tag3;{"key":"value"}
  • The symbol ; must be used as delimiter.
  • Note: {"key": "value"} refers to SharinPix metadatas in JSON.

Example

000000000000000000;http://lorempixel.com/400/200/sports/;foo,bar,dim;{"key":"value"}

License

MIT

Current Tags

  • 1.0.3                                ...           latest (2 years ago)

4 Versions

  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Downloads
Today 4
This Week 4
This Month 4
Last Day 0
Last Week 0
Last Month 3
Dependencies (5)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |