{"_id":"is-valid-path","_rev":"148893","name":"is-valid-path","description":"Returns true if a file path does not contain any invalid characters.","dist-tags":{"latest":"0.1.1"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T11:31:13.000Z","created":"2015-05-06T10:57:26.179Z","0.1.1":"2015-05-06T10:58:29.917Z","0.1.0":"2015-05-06T10:57:26.179Z"},"users":{"sixertoy":true},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/is-valid-path.git"},"versions":{"0.1.1":{"name":"is-valid-path","description":"Returns true if a file path does not contain any invalid characters.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/is-valid-path","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/is-valid-path.git"},"bugs":{"url":"https://github.com/jonschlinkert/is-valid-path/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/is-valid-path/blob/master/LICENSE"},"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["bash","braces","character","check","exec","expression","extglob","file","filepath","glob","globbing","globstar","invalid","match","matches","path","pattern","regex","regexp","regular","string","test","valid","validate"],"dependencies":{"is-invalid-path":"^0.1.0"},"gitHead":"6f8a4d27d29d7e93f983fddbfbd8e87e8aa56c07","_id":"is-valid-path@0.1.1","_shasum":"110f9ff74c37f663e1ec7915eb451f2db93ac9df","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"110f9ff74c37f663e1ec7915eb451f2db93ac9df","size":3211,"noattachment":false,"key":"/is-valid-path/-/is-valid-path-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-valid-path/download/is-valid-path-0.1.1.tgz"},"directories":{},"publish_time":1430909909917,"_cnpm_publish_time":1430909909917,"_hasShrinkwrap":false},"0.1.0":{"name":"is-valid-path","description":"Returns true if a filepath is valid.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/is-valid-path","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/is-valid-path.git"},"bugs":{"url":"https://github.com/jonschlinkert/is-valid-path/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/is-valid-path/blob/master/LICENSE"},"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["bash","braces","character","check","exec","expression","extglob","file","filepath","glob","globbing","globstar","invalid","match","matches","path","pattern","regex","regexp","regular","string","test","valid","validate"],"dependencies":{"is-invalid-path":"^0.1.0"},"_id":"is-valid-path@0.1.0","_shasum":"cd2a4daf2c4cd43977cba00e7ada32cfb9f3496d","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"cd2a4daf2c4cd43977cba00e7ada32cfb9f3496d","size":3194,"noattachment":false,"key":"/is-valid-path/-/is-valid-path-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-valid-path/download/is-valid-path-0.1.0.tgz"},"directories":{},"publish_time":1430909846179,"_cnpm_publish_time":1430909846179,"_hasShrinkwrap":false}},"readme":"# is-valid-path [![NPM version](https://badge.fury.io/js/is-valid-path.svg)](http://badge.fury.io/js/is-valid-path)\n\n> Returns true if a file path does not contain any invalid characters.\n\nInstall with [npm](https://www.npmjs.com/)\n\n```bash\nnpm i is-valid-path --save\n```\n\n## Usage\n\n```js\nvar isValid = require('is-valid-path');\n\n/**\n * Valid\n */\n\nisValid('abc.js');\n//=> 'true'\nisValid('abc/def/ghi.js');\n//=> 'true'\nisValid('foo.js');\n//=> 'true'\n\n/**\n * Invalid\n */\n\nisValid();\n//=> 'valse'\nisValid(null);\n//=> 'valse'\nisValid('!foo.js');\n//=> 'false'\nisValid('*.js');\n//=> 'false'\nisValid('**/abc.js');\n//=> 'false'\nisValid('abc/*.js');\n//=> 'false'\nisValid('abc/(aaa|bbb).js');\n//=> 'false'\nisValid('abc/[a-z].js');\n//=> 'false'\nisValid('abc/{a,b}.js');\n//=> 'false'\nisValid('abc/?.js');\n//=> 'false'\n```\n\n## Related\n\n* [is-glob](https://github.com/jonschlinkert/is-glob): Returns `true` if the given string looks like a glob pattern.\n* [is-invalid-path](https://github.com/jonschlinkert/is-invalid-path): Returns true if a file path has invalid characters.\n* [is-git-url](https://github.com/jonschlinkert/is-git-url): Regex to validate that a URL is a git url.\n* [micromatch](https://github.com/jonschlinkert/micromatch): Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. Just… [more](https://github.com/jonschlinkert/micromatch)\n* [parse-glob](https://github.com/jonschlinkert/parse-glob): Parse a glob pattern into an object of tokens.\n\n## Run tests\n\nInstall dev dependencies:\n\n```bash\nnpm i -d && npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/is-valid-path/issues)\n\n## Author\n\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright (c) 2015 Jon Schlinkert\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on May 06, 2015._\n","_attachments":{},"homepage":"https://github.com/jonschlinkert/is-valid-path","bugs":{"url":"https://github.com/jonschlinkert/is-valid-path/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/is-valid-path/blob/master/LICENSE"}}