1.0.0 • Published 6 years ago

home-files v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

home-files

npm version Build Status Coverage Status

List all files in the home directory

const homeFiles = require('home-files');

(async () => await homeFiles() /* => Set {
  '/Users/shinnn/.DS_Store',
  '/Users/shinnn/.bash_history',
  '/Users/shinnn/.bash_profile',
  '/Users/shinnn/.bashrc',
  '/Users/shinnn/.gitconfig',
  ...
  '/Users/shinnn/.zshrc'
} */)();

Installation

Use npm.

npm install home-files

API

const homeFiles = require('home-files');

homeFiles(options)

options: Object (used as readdir-sorted options)
Return: Promise<Set<string>>

The promise will be fulfilled with a Set of strings — absolute paths of all files included in the home directory. Symbolic links and directories are excluded.

Options are directly passed to the underlying readdir-sorted to control the order of results.

License

ISC License © 2017 - 2018 Shinnosuke Watanabe

1.0.0

6 years ago

0.8.0

6 years ago

0.7.0

7 years ago

0.6.0

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.0.0

7 years ago