is-valid-path
Version:
Returns true if a file path does not contain any invalid characters.
15 lines (11 loc) • 305 B
JavaScript
/*!
* is-valid-path <https://github.com/jonschlinkert/is-valid-path>
*
* Copyright (c) 2015 Jon Schlinkert, contributors.
* Licensed under the MIT license.
*/
;
var isInvalidPath = require('is-invalid-path');
module.exports = function (str) {
return isInvalidPath(str) === false;
};