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

@localazy/cdn-client

Package Overview
Dependencies
Maintainers
4
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@localazy/cdn-client

Node.js module that allows you to easily interact with the Localazy CDN.

  • 1.5.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
59
increased by227.78%
Maintainers
4
Weekly downloads
 
Created
Source

Localazy

📦 @localazy/cdn-client

Documentation  |  Getting Started  |  Live Demo  |  API Reference

Node.js module that allows you to easily interact with the Localazy CDN.

npm maintainer license
coverage size

🚀 Quick Start

npm install @localazy/cdn-client
# or use your favourite package manager
import { CdnClient } from '@localazy/cdn-client';

const cdn = await CdnClient.create({
  // use your own metafile
  metafile: 'https://delivery.localazy.com/_a855374211039568660198b39c31/_e0.v2.json',
});

const result = await cdn.fetch({
  // select files from metafile
  files: cdn.metafile.files[0],
  // select locales
  locales: ['en', 'de'],
});
example result
const result = {
  en: {
    cdn_info: 'With the CDN you can deliver the translation files instantly',
    cdn_testing: "We're testing the CDN",
    hello_localazy: 'Hello Localazy!',
    using_javascript: 'In this project we decided to use JavaScript',
  },
  de: {
    cdn_info: 'Mit dem CDN können Sie die Übersetzungsdateien sofort liefern',
    cdn_testing: 'Wir testen das CDN',
    hello_localazy: 'Hallo Localazy!',
    using_javascript: 'In diesem Projekt haben wir uns für JavaScript entschieden',
  },
};

For more information, visit Installation guide.

🛟 Support

💙 Localazy Packages

Check out all npm packages from Localazy:

PackageDescription
@localazy/cliLocalazy CLI tool for app and software localization and translation.
@localazy/api-clientNode.js module that allows you to easily interact with the Localazy API.
@localazy/cdn-clientNode.js module that allows you to easily interact with the Localazy CDN.
@localazy/languagesAvailable Localazy Languages
@localazy/strapi-pluginThe official Strapi Plugin by Localazy.
@localazy/directus-extension-localazyThe official Localazy module extension for Directus

Discover all available integration options and localization examples.

📜 License

Code released under the MIT license.

Keywords

FAQs

Package last updated on 01 May 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