Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@orama/cloudflare-api

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@orama/cloudflare-api

[![Nodejs](https://github.com/oramasearch/cloudflare-api/actions/workflows/nodejs.yml/badge.svg)](https://github.com/oramasearch/cloudflare-api/actions/workflows/nodejs.yml)

  • 0.2.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Cloudflare API library

Nodejs

This library is a wrapper around the Cloudflare API.

Installation

npm install @orama/cloudflare-api

Usage

import { CloudflareApi } from '@orama/cloudflare-api';

const apiKey = 'your-api-key'
const api = new CloudflareApi({ apiKey })

// Worker KV
const ACCOUNT_ID = 'your-account-id'
const NAMESPACE_ID = 'your-namespace-id'
const workerKv = api.workerKv(ACCOUNT_ID, NAMESPACE_ID)

await workerKv.uploadKv('key', 'value') // upload a value to the KV
await workerKv.getKv('key', 'text') // return the text representation of the value
await workerKv.deleteKv('key') // delete the value from the KV

License

Apache-2.0

Keywords

FAQs

Package last updated on 08 Oct 2024

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc