UNPKG

is-dotfile

Version:

Return true if a file path is (or has) a dotfile. Returns false if the path is a dot directory.

13 lines (10 loc) 268 B
/*! * is-dotfile <https://github.com/jonschlinkert/is-dotfile> * * Copyright (c) 2015-2017, Jon Schlinkert. * Released under the MIT License. */ var dotfileRegex = require('dotfile-regex'); module.exports = function(str) { return dotfileRegex().test(str); };