@dico/client
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

dico-client

npm version npm downloads Github Actions CI Codecov Conventional Commits License

Dico.app Client.

  • 🔑  Use keys seamlessly;
  • 🎏  Fetch your current dico;
  • 🌐  i18n support.

Install

npm install @dico/client

Usage

Update your scripts inside your package.json:

{
    /* ... */
    "scripts": {
        "dev": "dico-fetch && ...",
        "build": "dico-fetch && ..."
    }
}

Init dico client:

import { createDico } from "@dico/client";
// Dico data file is created next to your `dico.config.json` file
import data from "../dico.data.json";

export const { $dico, $dicoI18n } = createDico(data);

Documentation

To discover what's new on this package check out the changelog. For full documentation, visit the official Dico.app documentation.

License

MIT License

Readme

Keywords

Package Sidebar

Install

npm i @dico/client

Weekly Downloads

16

Version

0.0.7

License

MIT

Unpacked Size

19.4 kB

Total Files

8

Last publish

Collaborators

  • lihbr