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

mediapicker

Package Overview
Dependencies
Maintainers
8
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mediapicker

Library for handling file uploads

  • 8.1.2
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by12.5%
Maintainers
8
Weekly downloads
 
Created
Source

Media Picker

Media Picker is Atlassian's toolkit for getting your customer's files to the Media API.

Documentation

You can read documentation on this page.

Setup

Media Picker consists of two sub-projects that both need to be set up.

First, install the dependencies:

yarn
(cd popup && yarn)

Second, build both projects (whenever you made changes):

yarn build-local
(cd popup && yarn build)

Development

Link all the things:

1- Link mediapicker

~/mediapicker: yarn link

2- Link mediapicker inside popup

~/mediapicker/popup: yarn link mediapicker

Now spin up the development server:

yarn start

Watch for changes

yarn watch
(cd popup && yarn watch)

Open Chrome in unsafe mode in order to override Access-Control-Allow-Origin restrictions when using localhost:

open -a Google\ Chrome\ Canary --args --disable-web-security --user-data-dir

And finally open the example page from a local python server:

python -m SimpleHTTPServer 8080
open http://localhost:8080/lib/example/popup.html

Testing

yarn test

Requires yarn build-local to create the necessary config files.

Releasing

Manually bump the version in package.json.

npm run release

FAQs

Package last updated on 21 Sep 2017

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