Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rodrigobdz/hide-file-extension-mac
📄 Toggle file extension visibility from CLI for macOS 🍎
https://github.com/rodrigobdz/hide-file-extension-mac
apple-script cli-utilities file-extensions generator-lnm hidden macos npm-module npm-package yarn
Last synced: 10 days ago
JSON representation
📄 Toggle file extension visibility from CLI for macOS 🍎
- Host: GitHub
- URL: https://github.com/rodrigobdz/hide-file-extension-mac
- Owner: rodrigobdz
- License: mit
- Created: 2019-02-12T20:51:34.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-23T09:37:24.000Z (almost 6 years ago)
- Last Synced: 2024-11-15T21:53:24.036Z (2 months ago)
- Topics: apple-script, cli-utilities, file-extensions, generator-lnm, hidden, macos, npm-module, npm-package, yarn
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/hide-file-extension-mac
- Size: 33.2 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- Contributing: contributing.md
- License: license
- Code of conduct: code_of_conduct.md
Awesome Lists containing this project
README
# 📄 Hide File Extension 🍎 ![Build status](https://travis-ci.org/rodrigobdz/hide-file-extension-mac.svg?branch=master)
> Toggle file extension visibility from CLI for macOS
## Requirements
- Xcode Command-Line Tools
- Node## Install
```sh
$ npm install hide-file-extension-mac
```## Usage
```js
const hideFileExtensionMac = require("hide-file-extension-mac");// foo.txt
hideFileExtensionMac("foo.txt");
//=> 'foo'// foo
hideFileExtensionMac("foo.txt", { show: true });
//=> 'foo.txt'
```## API
### hideFileExtensionMac(input, [options])
#### input
Type: `string`
Path to file.
#### options
Type: `Object`
##### show
Type: `boolean`
Default: `false`Flag to show or hide file extension.
## CLI
```sh
$ npm install --global hide-file-extension-mac
``````sh
$ hide-file-extension-mac --helpUsage
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
```## Credits
* [generator-lnm](https://github.com/rodrigobdz/generator-lnm) - Awesome node module generator
## License
[MIT](license) © [Rodrigo Bermudez Schettino](https://rodrigobdz.github.io)