Giter Club home page Giter Club logo

cloudflare-images-client's Introduction

Node.js CI

cloudflare-images-client

This repository is a complete wrapper around the Cloudflare Images API. It provides a simple and efficient way to interact with the API, allowing you to manage your images on Cloudflare with ease.

API

The API provides the following functionalities:

  • uploadImageFromUrl: Allows you to upload image to Cloudflare.
  • listImages: Lists all the images that you have uploaded to Cloudflare.
  • getImageDetails: Retrieves the details of a specific image.
  • getImageAsBlob: Retrieves the image as Blob file.
  • getImageStatistics: Retrieves the stats of cloudflare images storage.
  • updateImage: Updates a specific image from Cloudflare.
  • deleteOneImage: Deletes one image from Cloudflare.
  • deleteManyImages: Deletes many images from Cloudflare.
  • deleteDuplicateImages: Deletes duplicate images from Cloudflare.

Installation

To install the package, use the following command:

npm install cloudflare-images-client

USAGE

const CloudflareImagesClient = require('cloudflare-images-client');

const client = new CloudflareImagesClient({
  apiToken: 'your-api-key', // https://dash.cloudflare.com/profile/api-tokens
  accountId: 'account-id' // account id
});

// Upload an image
  const result = await client.uploadImageFromUrl({
    url:
      "DEFAULT_IMAGE_URL.jpeg",
  });

Contributing

Contributions are welcome! Please read the contributing guidelines before getting started.

License

This project is licensed under the MIT License - see the LICENSE file for details.

cloudflare-images-client's People

Contributors

nickolasbenakis avatar dimitrispattas avatar drosi94 avatar

Stargazers

Alex Pérez Arenas avatar

Watchers

 avatar

Forkers

drosi94

cloudflare-images-client's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.