Have ideas to improve npm?Join in the discussion! »

    @epok.tech/get-base-path

    1.1.2 • Public • Published

    get-base-path

    Small utility to handle paths for different hosts - for hosting on local/Github/etc.

    Usage

    import getBasePath from '../';
     
    const url = getBasePath()+'path/to.asset';
     
    console.log(url);
     
    (async () => {
        const response = await fetch(url);
     
        console.log(response.ok);
    })();

    Keywords

    none

    Install

    npm i @epok.tech/get-base-path

    DownloadsWeekly Downloads

    1

    Version

    1.1.2

    License

    MIT

    Unpacked Size

    1.29 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar