Toggle file extension visibility from CLI for macOS
- Xcode Command-Line Tools
- Node
$ npm install hide-file-extension-mac
const hideFileExtensionMac = require("hide-file-extension-mac");
// foo.txt
hideFileExtensionMac("foo.txt");
//=> 'foo'
// foo
hideFileExtensionMac("foo.txt", { show: true });
//=> 'foo.txt'
Type: string
Path to file.
Type: Object
Type: boolean
Default: false
Flag to show or hide file extension.
$ npm install --global hide-file-extension-mac
$ hide-file-extension-mac --help
Usage
hide-file-extension-mac [input]
Options
--show, -s Show extensions [Default: false]
Examples
$ hide-file-extension-mac --show foo.txt
# foo.txt
$ hide-file-extension-mac foo.txt
# foo
- generator-lnm - Awesome node module generator