1.0.1 • Published 8 years ago
hidepath v1.0.1
hidepath
Get the hidden equivalent of a file path.
Installation
Install hidepath by running:
$ npm install --save hidepathDocumentation
hidepath~hidepath(file) ⇒ String
This function prepends . or _, on Unix and
Windows respectively to the passed file path.
Kind: inner method of hidepath
Summary: Get the hidden equivalent of a file path
Returns: String - hidden equivalent file path
Access: public
| Param | Type | Description |
|---|---|---|
| file | String | file path |
Example
var hidepath = require('hidepath');
console.log(hidepath('/home/jviotti/vimrc'));
> /home/jviotti/.vimrcSupport
If you're having any problem, please raise an issue on GitHub and I'll be happy to help.
Tests
Run the test suite by doing:
$ gulp testContribute
- Issue Tracker: github.com/jviotti/hidepath/issues
- Source Code: github.com/jviotti/hidepath
Before submitting a PR, please make sure that you include tests, and that jshint runs without any warning:
$ npm run lintLicense
The project is licensed under the MIT license.