mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-16 07:13:46 -05:00
chore(package): re-init package with commitizen and standard-release
This commit is contained in:
19
node_modules/null-check/index.js
generated
vendored
Normal file
19
node_modules/null-check/index.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
'use strict';
|
||||
module.exports = function (pth, cb) {
|
||||
if (String(pth).indexOf('\u0000') !== -1) {
|
||||
var err = new Error('Path must be a string without null bytes.');
|
||||
err.code = 'ENOENT';
|
||||
|
||||
if (typeof cb !== 'function') {
|
||||
throw err;
|
||||
}
|
||||
|
||||
process.nextTick(function () {
|
||||
cb(err);
|
||||
});
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
21
node_modules/null-check/license
generated
vendored
Normal file
21
node_modules/null-check/license
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
36
node_modules/null-check/package.json
generated
vendored
Normal file
36
node_modules/null-check/package.json
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"name": "null-check",
|
||||
"version": "1.0.0",
|
||||
"description": "Ensure a path doesn't contain null bytes",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/null-check",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node test.js"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"keywords": [
|
||||
"built-in",
|
||||
"core",
|
||||
"ponyfill",
|
||||
"polyfill",
|
||||
"shim",
|
||||
"fs",
|
||||
"path",
|
||||
"null",
|
||||
"bytes",
|
||||
"check"
|
||||
],
|
||||
"devDependencies": {
|
||||
"ava": "0.0.4"
|
||||
}
|
||||
}
|
||||
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