mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-16 23:33:38 -05:00
chore(package): re-init package with commitizen and standard-release
This commit is contained in:
34
node_modules/null-check/readme.md
generated
vendored
Normal file
34
node_modules/null-check/readme.md
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
# null-check [](https://travis-ci.org/sindresorhus/null-check)
|
||||
|
||||
> Ensure a path doesn't contain [null bytes](http://en.wikipedia.org/wiki/Null_character)
|
||||
|
||||
The same check as done in all the core [`fs` methods](https://github.com/iojs/io.js/blob/18d457bd3408557a48b453f13b2b99e1ab5e7159/lib/fs.js#L88-L102).
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save null-check
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var nullCheck = require('null-check');
|
||||
|
||||
nullCheck('unicorn.png\u0000', function (err) {
|
||||
console.log(err);
|
||||
//=> { [Error: Path must be a string without null bytes.] code: 'ENOENT' }
|
||||
});
|
||||
//=> false
|
||||
|
||||
// the method is sync without a callback
|
||||
nullCheck('unicorn.png');
|
||||
//=> true
|
||||
```
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](http://sindresorhus.com)
|
||||
Reference in New Issue
Block a user