2.0.0 • Published 8 years ago

hidden-files v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

hidden-files Build Status

Show or hide hidden files on OS X systems.

Finder is automatically restarted

Install

$ npm install --save hidden-files

Usage

const hiddenFiles = require('hidden-files');

hiddenFiles.show().then(() => {
	console.log('Hidden files are now shown');
});

hiddenFiles.isShown().then(state => {
	console.log(state);
	//=> true
});

CLI

$ npm install --global hidden-files
$ hidden-files --help

  Usage
    $ hidden-files
    $ hidden-files show
    $ hidden-files hide

API

.isShown()

Check if hidden files are shown or hidden.

.show()

Show hidden files.

.hide()

Hide hidden files.

.toggle(force)

Toggle the hidden files state.

force

Type: boolean

Force a state when toggling.

License

MIT © Andreas Gillström

2.0.0

8 years ago

1.0.3

8 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago