uppy/packages/@uppy/core
Artur Paikin e1f416d019
core: Add an option to supply logger with debug, warn and error methods (#1661)
* Add an option to supply customLogger that will receive message and type from uppy.log

* Always use logger function, set to nullLogger by default

Co-Authored-By: Renée Kooi <github@kooi.me>

* add tests for logging and not logging with a function and debug: true

* Update packages/@uppy/core/src/loggers.js

account for `debug` not being available in IE10

Co-Authored-By: Renée Kooi <renee@kooi.me>

* add .call

* fix tests

* expose Uppy.debugLogger

* document logger

* core cleanup

* add logger to defaultOptions in docs too

* debug: true — only override logger if it has not been set in opts
2019-07-05 20:12:43 +02:00
..
src core: Add an option to supply logger with debug, warn and error methods (#1661) 2019-07-05 20:12:43 +02:00
types core: make meta.name not required in addFile() (#1629) 2019-06-19 10:34:58 +02:00
LICENSE Move Core class to @uppy/core package. 2018-06-14 16:31:19 +02:00
package-lock.json move everything to /examples 2018-12-19 14:46:36 +03:00
package.json Release 2019-06-05 19:07:20 +03:00
README.md docs: update webpack homepage URLs 2019-03-04 13:43:37 +01:00

@uppy/core

Uppy logo: a superman puppy in a pink suit

Build Status

Uppy is a sleek, modular JavaScript file uploader that integrates seamlessly with any application. Its fast, easy to use and lets you worry about more important problems than building a file uploader.

  • Fetch files from local disk, remote urls, Google Drive, Dropbox, Instagram, or snap and record selfies with a camera;
  • Preview and edit metadata with a nice interface;
  • Upload to the final destination, optionally process/encode

Read the docs | Try Uppy

Uppy is being developed by the folks at Transloadit, a versatile file encoding service.

Example

const Uppy = require('@uppy/core')

const uppy = Uppy()
uppy.use(SomePlugin)

Installation

$ npm install @uppy/core --save

We recommend installing from npm and then using a module bundler such as Webpack, Browserify or Rollup.js.

Alternatively, you can also use this plugin in a pre-built bundle from Transloadit's CDN: Edgly. In that case Uppy will attach itself to the global window.Uppy object. See the main Uppy documentation for instructions.

Documentation

Documentation for this plugin can be found on the Uppy website.

License

The MIT License.