directories-js
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.0 • Public • Published

    directories

    https://github.com/dirs-dev/directories-rs for javascript

    Installation

    # from npm
    npm install directories-js
    
    # or from github:
    npm install https://github.com/danielpza/directories-js

    Usage

    import { baseDirs, userDirs, projectDirs } from "directories-js";
    
    baseDirs.home();
    baseDirs.cache();
    baseDirs.config();
    baseDirs.data();
    baseDirs.dataLocal();
    baseDirs.executable();
    baseDirs.preference();
    baseDirs.runtime();
    
    userDirs.home();
    userDirs.audio();
    userDirs.desktop();
    userDirs.document();
    userDirs.download();
    userDirs.font();
    userDirs.picture();
    userDirs.public();
    userDirs.template();
    userDirs.video();
    
    const project = {
      qualifier: "org",
      organization: "Baz Corp",
      application: "Foo Bar-App",
    };
    // or const project = "baz-corp/foo-bar-app";
    projectDirs.cache(project);
    projectDirs.config(project);
    projectDirs.data(project);
    projectDirs.dataLocal(project);
    projectDirs.preference(project);
    projectDirs.runtime(project);

    Install

    npm i directories-js

    DownloadsWeekly Downloads

    0

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    26.7 kB

    Total Files

    23

    Last publish

    Collaborators

    • danielpanpm