Socket
Socket
Sign inDemoInstall

loopback-component-cloudinary

Package Overview
Dependencies
3
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

loopback-component-cloudinary


Version published
Maintainers
1
Install size
9.98 MB
Created

Readme

Source

loopback-component-cloudinary

Connect Loopback with Cloudinary.

  1. Install component

    npm install loopback-component-cloudinary --save
    
  2. Configure datasource

    "cloudinary": {
        "name": "cloudinary",
        "connector": "loopback-component-cloudinary",
        "url": "[API-URL]"
      }
    
  3. Define model, common/models/cloudinary-image.json:

    {
        "name": "CloudinaryImage",
        "base": "Model"
    }
    
  4. Add entry to server/model-config.json

    "CloudinaryImage": {
        "dataSource": "cloudinary",
        "public": true
    }
    
  5. Use!!!

    FileCloudinary.upload(req, res, options)
    

FAQs

Last updated on 14 Feb 2015

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc