hide-file-extension-mac
Version:
Toggle file extension visibility from CLI for macOS
80 lines (50 loc) • 1.25 kB
Markdown
> Toggle file extension visibility from CLI for macOS
- Xcode Command-Line Tools
- Node
```sh
$ npm install hide-file-extension-mac
```
```js
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`<br>
Default: `false`
Flag to show or hide file extension.
```sh
$ npm install --global hide-file-extension-mac
```
```sh
$ 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
$ hide-file-extension-mac foo.txt
```
* [generator-lnm](https://github.com/rodrigobdz/generator-lnm) - Awesome node module generator
[](license) © [Rodrigo Bermudez Schettino](https://rodrigobdz.github.io)