1.0.1 • Published 7 years ago

hidepath v1.0.1

Weekly downloads
1,468
License
MIT
Repository
github
Last release
7 years ago

hidepath

Get the hidden equivalent of a file path.

npm version dependencies Build Status Build status

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

ParamTypeDescription
fileStringfile 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

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.