mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-16 07:13:46 -05:00
chore(package): re-init package with commitizen and standard-release
This commit is contained in:
17
node_modules/normalize-path/index.js
generated
vendored
Normal file
17
node_modules/normalize-path/index.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/*!
|
||||
* normalize-path <https://github.com/jonschlinkert/normalize-path>
|
||||
*
|
||||
* Copyright (c) 2014-2015, Jon Schlinkert.
|
||||
* Licensed under the MIT License
|
||||
*/
|
||||
|
||||
module.exports = function(fp, stripTrailing) {
|
||||
fp = fp.replace(/[\\\/]+/g, '/');
|
||||
if (stripTrailing === false) {
|
||||
return fp;
|
||||
}
|
||||
|
||||
return fp.slice(-1) === '/'
|
||||
? fp.slice(0, fp.length -1)
|
||||
: fp;
|
||||
};
|
||||
Reference in New Issue
Block a user