
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
@invertase/storage-image-processing-api
Advanced tools
A JavaScript utility library for the Firebase Storage Image Processing API Extension.
This package contains utilities for interacting with the Firebase Storage Image Processing API Extension.
npm i --save @invertase/storage-image-processing-api
builder
Returns a StorageImageProcessingApi
instance which can be used to build an array of operations to be applied to an image via the extension.
import { builder } from '@invertase/storage-image-processing-api';
const output = builder()
// Input required
.input({
source: 'https://example.com/image.jpg',
})
.flip()
.grayscale()
.rotate({ angle: 90 })
// Output required
.output({
format: 'png',
});
Once created, the api provides the means to return the operations as JSON, a JSON string or an encoded JSON string suitable for GET requests in your browser.
const json = output.toJSON();
const jsonString = output.toJSONString();
const encodedJsonString = output.toEncodedJSONString();
FAQs
A JavaScript utility library for the Firebase Storage Image Processing API Extension.
We found that @invertase/storage-image-processing-api demonstrated a not healthy version release cadence and project activity because the last version was released 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.