Socket
Socket
Sign inDemoInstall

@scoir/filestack

Package Overview
Dependencies
0
Maintainers
36
Versions
11
Alerts
File Explorer

Advanced tools

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.


Version published
Weekly downloads
417
increased by93.95%
Maintainers
36
Created
Weekly downloads
 

Readme

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

Last updated on 24 Jan 2024

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