UNPKG

is-valid-path

Version:

Returns true if a file path does not contain any invalid characters.

15 lines (11 loc) 305 B
/*! * is-valid-path <https://github.com/jonschlinkert/is-valid-path> * * Copyright (c) 2015 Jon Schlinkert, contributors. * Licensed under the MIT license. */ 'use strict'; var isInvalidPath = require('is-invalid-path'); module.exports = function (str) { return isInvalidPath(str) === false; };