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

@scoir/filestack

Package Overview
Dependencies
Maintainers
29
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scoir/filestack

This utility helps with integration with Google Analytics in a React context.

  • 3.0.0
  • npm
  • Socket score

Version published
Weekly downloads
256
increased by92.48%
Maintainers
29
Weekly downloads
 
Created
Source

filestack

This utility helps with integration with Google Analytics in a React context.

Usage

Factory

Factory for wrapping filestack in promise aware methods. The first argument is the CLIENT_KEY. The second argument is the filestack instance provided by importing: <script type="text/javascript" src="https://api.filestackapi.com/filestack.js"></script>

import filestackFactory, { fileExtensions } from '@scoir/filestack';
filestackFactory(YOUR_KEY, filestackInstance);

Instance

The factory creates an object that provides filestack with some methods that have been "promisified". "Promisified" methods as follows:

  • upload (file, storeOptions)
    • file -- raw data, a Blob, or a DOM File Object
    • storeOptions -- configuration on storing the data
  • export (handle)
    • handle -- Blob or URL
    • use upload to generate a Blob first if using raw data or a DOM File Object
  • pickAndStore (pickerOptions, storeOptions)
    • pickerOptions -- configuration on picker modal behavior
    • storeOptions -- configuration on storing the data

FAQs

Package last updated on 23 May 2022

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