Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

sharinpix-import

1.0.3 • Public • Published

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

Install

npm i sharinpix-import

DownloadsWeekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

8.86 kB

Total Files

9

Last publish

Collaborators

  • avatar
  • avatar