hidepath

Get the hidden equivalent of a file path

Usage no npm install needed!

<script type="module">
  import hidepath from 'https://cdn.skypack.dev/hidepath';
</script>

README

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

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

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.