Nameless Package Manager

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

    0.1.2 • Public • Published

    cdn-client

    Maintenance License: MIT

    Javascript library for dynamic dependencies fetching from YouWol's CDN

    Installation, Build & Test

    To install the required dependencies:

    yarn

    To build for development:

    yarn build:dev

    To build for production:

    yarn build:prod

    Tests require py-youwol to run on port 2001 using the configuration defined in the test directory.

    yarn test

    To generate code documentation:

    yarn doc

    Usage

    This library is used to dynamically fetch dependencies from YouWol's CDN in a front-end application, e.g.:

    await cdn.install({
        modules: ['d3', '@youwol/fv-tree'],
        css: ['bootstrap#4.4.1~bootstrap.min.css'],
    })

    Missing dependencies from the provided mapping will be fetched using their latest version.

    This client is only dealing with packages stored in the YouWol's CDN: the dependencies requested, as well as their direct and indirect dependencies, must exist in there.

    The library can also be used to install stylesheets or javascript addons, see the developer documentation.

    Keywords

    none

    Install

    npm i @youwol/cdn-client

    DownloadsWeekly Downloads

    3

    Version

    0.1.2

    License

    MIT

    Unpacked Size

    1.52 MB

    Total Files

    133

    Last publish

    Collaborators

    • youwol-jdecharne
    • fmaerten
    • youwol-guillaume