npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@nstudio/nativescript-cloudinary

v1.0.0

Published

Cloudinary for NativeScript

Downloads

67

Readme

@nstudio/nativescript-cloudinary

NativeScript plugin for displaying Cloudinary-hosted images with native SDK-powered URL generation on both iOS and Android.

npm install @nstudio/nativescript-cloudinary

Compatible with Angular, React, Solid, Svelte, and Vue.

Setup

Initialize Cloudinary before using any components or APIs (e.g., in your app's entry point):

import { init } from '@nstudio/nativescript-cloudinary';

init('your_cloud_name', 'your_api_key', 'your_api_secret');

ImageCloudinary Component

A drop-in Image subclass that generates and loads Cloudinary URLs via the options property.

XML

<Page xmlns:cl="@nstudio/nativescript-cloudinary">
  <cl:ImageCloudinary options="{{ imageOptions }}" stretch="aspectFit" />
</Page>

Options

Bind an ImageCloudinaryOptions object:

// Simple (top-level shorthand)
const options: ImageCloudinaryOptions = {
  src: 'cld-sample',
  width: 900,
  height: 900,
  crop: 'fill',
  gravity: 'face',
};

// Chained transformations
const options: ImageCloudinaryOptions = {
  src: 'cld-sample',
  transformations: [
    { width: 900, height: 900, crop: 'fill', gravity: 'auto' },
    { effect: 'sepia' },
    { radius: 'max' },
    { format: 'auto', quality: 'auto' },
  ],
};

// Raw transformation string
const options: ImageCloudinaryOptions = {
  src: 'cld-sample',
  rawTransformation: 'c_thumb,g_face,h_300,w_300/r_max/f_auto/q_auto',
};

Other Flavors

Angular

import { registerElement } from '@nativescript/angular';
import { ImageCloudinary } from '@nstudio/nativescript-cloudinary';

registerElement('ImageCloudinary', () => ImageCloudinary);

React

import { registerElement } from 'react-nativescript';
import { ImageCloudinary } from '@nstudio/nativescript-cloudinary';

registerElement('imageCloudinary', () => ImageCloudinary);

Solid

import { registerElement } from 'dominative';
import { ImageCloudinary } from '@nstudio/nativescript-cloudinary';

registerElement('imageCloudinary', ImageCloudinary);

Svelte

import { registerNativeViewElement } from '@nativescript-community/svelte-native/dom';
import { ImageCloudinary } from '@nstudio/nativescript-cloudinary';

registerNativeViewElement('imageCloudinary', () => ImageCloudinary);

Vue

import { registerElement } from 'nativescript-vue';
import { ImageCloudinary } from '@nstudio/nativescript-cloudinary';

registerElement('ImageCloudinary', () => ImageCloudinary);

generateUrl

Generate a Cloudinary URL programmatically without the component:

import { generateUrl } from '@nstudio/nativescript-cloudinary';

const url = generateUrl({
  src: 'cld-sample',
  width: 600,
  crop: 'scale',
  format: 'auto',
  quality: 'auto',
});

Transformation Properties

Each CloudinaryTransformation supports:

| Property | Type | Description | |---|---|---| | width | number \| string | Width | | height | number \| string | Height | | crop | CropMode | Crop mode (fill, fit, scale, thumb, pad, etc.) | | gravity | Gravity | Gravity (auto, face, faces, center, etc.) | | aspectRatio | string \| number | Aspect ratio | | x, y | number \| string | Position offset | | zoom | number \| string | Zoom level | | format | ImageFormat | Delivery format (auto, webp, avif, etc.) | | fetchFormat | string | Fetch format | | quality | string \| number | Quality (auto, 80, etc.) | | dpr | string \| number | Device pixel ratio | | effect | string | Effect (sepia, grayscale, blur:800, etc.) | | radius | number \| string | Corner radius (max for circle) | | border | string | Border (e.g., 5px_solid_rgb:0066ff) | | background | string | Background color or auto:border | | color | string | Color | | colorSpace | string | Color space | | angle | number \| string | Rotation angle or hflip/vflip | | flags | string \| string[] | Transformation flags | | overlay | string | Overlay public ID or text spec | | underlay | string | Underlay public ID | | opacity | number \| string | Opacity (0-100) | | page | number \| string | Page/frame number | | density | number \| string | DPI density | | defaultImage | string | Fallback image public ID | | named | string | Named transformation | | variables | Record<string, string \| number> | User-defined variables | | rawTransformation | string | Raw transformation string (appended as-is) |

ImageCloudinaryOptions

Extends the transformation properties above with:

| Property | Type | Description | |---|---|---| | src | string | Required. Cloudinary public ID | | resourceType | string | image, video, raw, or auto | | type | string | upload, fetch, private, or authenticated | | version | string | Version string (e.g., v1685472103) | | extension | string | File extension override | | transformations | CloudinaryTransformation[] | Chained transformation array | | rawTransformation | string | Full raw URL transformation string |

Priority: rawTransformation > transformations array > top-level shorthand properties.

Debugging

Enable debug logging:

import { ImageCloudinary } from '@nstudio/nativescript-cloudinary';

ImageCloudinary.debug = true;

License

Apache License Version 2.0