Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sharey

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sharey

Sharey, a small but powerful addon designed to help you upload files to third parties with ease.

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Sharey.js

Sharey is a powerful addon with a size of less than 2 KB that is designed to help you upload files to third parties with ease.

https://www.jsdelivr.com/package/npm/sharey https://www.jsdelivr.com/package/npm/sharey https://www.jsdelivr.com/package/npm/sharey

Key Features

  • handle file uploads
  • generate unique IDs for each upload
  • get the upload date for each upload

Setup w/ CDN

<script src="https://cdn.jsdelivr.net/npm/sharey@1.1.2"></script>

Local Setup

<script src="path/to/sharey.min.js"></script>

Usage

// get value of file input
const file = document.querySelector('.fileInput').files[0]

// upload file to azury
sharey.azury(file, (res) => { // replace 'azury' with your desired service
  console.log(res)
})

Please refer to this for a full example.

Sample Response

{
  name: "file.png",
  readableSize: "346.71 KB",
  size: 346711,
  token: "DfBQ1FytcPZMz06c4mvgRE25Lg_wtsCD",
  type: "image/png",
  uploadedAt: 1623503959635,
  url: "https://azury.gg/a/654743ef4111e60a0c8667f5"
}

Providers

Keywords

FAQs

Package last updated on 23 Jun 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc