directories-js
https://github.com/dirs-dev/directories-rs for javascript
Last updated 8 months ago by danielpanpm .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install directories-js 
SYNC missed versions from official npm registry.

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);

Current Tags

  • 0.1.0                                ...           latest (8 months ago)

1 Versions

  • 0.1.0                                ...           8 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2021 © npmmirror.com |