hidepath
v1.0.1
Published
Get the hidden equivalent of a file path
Downloads
40,170
Readme
hidepath
Get the hidden equivalent of a file path.
Installation
Install hidepath
by running:
$ npm install --save hidepath
Documentation
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/.vimrc
Support
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 test
Contribute
- 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 lint
License
The project is licensed under the MIT license.