1.0.4 • Published 2 years ago

@digitalmasterpieces/asset-registry v1.0.4

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
2 years ago

@digitalmasterpieces/

asset-registry

npm npm License npm bundle size Libraries.io dependency status for latest release, scoped npm package Type declarations

Delivers Visual Computing Assets (VCAs) by providing a common interface for possible VCA storages.

Installing

You can install the AssetRegistry using NPM or Yarn to get the latest version of our library.

npm install @digitalmasterpieces/asset-registry

For usage from a CDN we recommend using Skypack CDN. The AssetRegistry package is accessable at the following URL:

https://cdn.skypack.dev/@digitalmasterpieces/asset-registry


Usage

As default export the package provides a factory function that can be called with a registry type and initialization options.

import createAssetRegistry from "@digitalmasterpieces/asset-registry";

const registry = createAssetRegistry("rest", { ...options });

// ...

The currently supported registry types are:

  • RESTAssetRegistry (type: "rest") - Gets asset information with HTTP request from a REST-based API. Works for browser and Node.js.

Instead of using the factory function you can also import the prefered registry directly:

import { RESTAssetRegistry } from "@digitalmasterpieces/asset-registry/registries";

const registry = new RESTAssetRegistry({ ...options });

// ...

The full documentation with some usage examples is available here.

To learn more about the Stylization SDK visit our homepage at https://saas.digitalmasterpieces.com.

Get your own API key here.

Try our demo application here.

License

MIT