0.1.0 • Published 4 years ago

feathers-cloudinary v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

feathers-cloudinary

Build Status Download Status

Unofficial Feathers plugin service for Cloudinary

Installation

npm install feathers-cloudinary --save

Documentation

TBD

Complete Example

Here's an example of a Feathers server that uses cloudinary.

const feathers = require("@feathersjs/feathers");

// Initialize the application
const app = feathers();

in upload.class.js:

/* eslint-disable no-unused-vars */
const { Upload } = require('feathers-cloudinary');

exports.Upload = Upload;

in upload.service.js:

// Initializes the `upload` service on path `/upload`
const { Upload } = require('./upload.class');
const hooks = require('./upload.hooks');

module.exports = function(app) {
  const options = {
    paginate: app.get('paginate'),
    cloud_name: process.env.CLOUDINARY_CLOUD_NAME,
    api_key: process.env.CLOUDINARY_API_KEY,
    api_secret: process.env.CLOUDINARY_API_SECRET,
  };

  // Initialize our service with any options it requires
  app.use('/upload', new Upload(options, app));

  // Get our initialized service so that we can register hooks
  const service = app.service('upload');

  service.hooks(hooks);
};

Contributing

Run npm run release:<type>

License

Copyright (c) 2018

Licensed under the MIT license.

0.1.0

4 years ago

0.0.16

4 years ago

0.0.15

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago