Socket
Socket
Sign inDemoInstall

sharinpix

Package Overview
Dependencies
54
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sharinpix

SharinPix Client


Version published
Maintainers
3
Created

Readme

Source

Sharinpix client.

Installation

npm install --save sharinpix

Example of code :

Sharinpix = require('sharinpix');
Sharinpix.upload('./sharinpix.jpg', 'super_test').then(function(image){
  console.log(image.public_id);
}, function(error){
  console.log(error);
})

Import from Url

Sharinpix = require('sharinpix');
Sharinpix.import('https://test.sharinpix.com/image.jpg', 'super_test').then(function(image){
  console.log(image.public_id);
}, function(error){
  console.log(error);
})

Authentification :

Set the environement variable SHARINPIX_URL with the url of your secret or call configure like this :

Sharinpix.configure('<Sharinpix-secret-url>');

SharinPix command line tool

Installing SharinPix globally

npm install -g sharinpix

Set environment variable

Run export SHARINPIX_URL="YOUR_SHARINPIX_SECRET_URL" on your terminal or set SHARINPIX_URL permanently to your enviroment variable.

Upload

Run sharinpix upload <image path> <album id> [<json metadatas>] on your terminal.

Keywords

FAQs

Last updated on 08 Sep 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc