UNPKG

@uppy/companion

Version:

OAuth helper and remote fetcher for Uppy's (https://uppy.io) extensible file upload widget with support for drag&drop, resumable uploads, previews, restrictions, file processing/encoding, remote providers like Dropbox and Google Drive, S3 and more :dog:

13 lines (12 loc) 458 B
#!/usr/bin/env node "use strict"; const companion = require('../companion'); // @ts-ignore const { version } = require('../../package.json'); const standalone = require('.'); const logger = require('../server/logger'); const port = process.env.COMPANION_PORT || process.env.PORT || 3020; const { app } = standalone(); companion.socket(app.listen(port)); logger.info(`Welcome to Companion! v${version}`); logger.info(`Listening on http://localhost:${port}`);