@everymundo/global-root-dir

    1.1.1 • Public • Published

    @everymundo/global-root-dir

    Sets a global variable variable __rootdir

    Install

    npm install @everymundo/global-root-dir

    Usage

    // this will use process.pwd() as value
    require('@everymundo/global-root-dir').setGlobalRootDir()
    console.log(global.__rootdir);
    console.log({__rootdir});
    
    // if you prefer you can pass a directory
    require('@everymundo/global-root-dir').setGlobalRootDir(__dirname)
    console.log(global.__rootdir);
    console.log({__rootdir});

    Keywords

    none

    Install

    npm i @everymundo/global-root-dir

    DownloadsWeekly Downloads

    6

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    7 kB

    Total Files

    9

    Last publish

    Collaborators

    • mtmorell88
    • a11y_automation2
    • ramses83
    • raydel
    • alex-orga
    • vladimirpetrov
    • estebanpablo89
    • yartiles
    • jonmorazav
    • emdavidmoreno
    • everymundo-admin
    • ballester
    • danielsan
    • halain
    • avivero93
    • anahiem
    • herlin
    • karinfdez
    • ernestocarrasco
    • erlin
    • front10devs
    • hdelcastillo
    • dcuevacem
    • rodneyem
    • ortega.dc98
    • pedroleon917
    • kaylingw
    • joeaspiazuem
    • lazjramos
    • daniuska-em
    • cstansfld