
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@squarecloud/blob
Advanced tools
Official Square Cloud Blob SDK for NodeJS.
npm install @squarecloud/blob
// or
yarn add @squarecloud/blob
// or
pnpm add @squarecloud/blob
Visit our official API documentation for more information about this service.
import { SquareCloudBlob } from "@squarecloud/blob"
// CommonJS => const { SquareCloudBlob } = require("@squarecloud/blob");
const blob = new SquareCloudBlob("Your API Key")
const objects = await blob.objects.list()
const blobObject = await blob.objects.create({
file: "path/to/file.png", // Absolute path to your file
name: "my_image", // File name without extension
})
console.log(blobObject.url)
import { MimeTypes } from "@squarecloud/blob"
// CommonJS => const { MimeTypes } = require("@squarecloud/blob")
const blobObject = await blob.objects.create({
file: Buffer.from("content"),
name: "my_image",
mimeType: MimeTypes.IMAGE_JPEG, // Also accepts an string "image/jpeg"
})
console.log(blobObject.url)
// List of objects to delete (Limit of 100 per request)
const objectsToDelete = [
"ID/prefix/name1_xxx-xxx.mp4",
"ID/prefix/name_xxx-xxx-xxx.png"
]
await blob.objects.delete(objectsToDelete)
Feel free to contribute with suggestions or bug reports at our GitHub repository.
FAQs
Official Square Cloud Blob SDK for NodeJS
We found that @squarecloud/blob demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.