blog menu page & blog article page
This commit is contained in:
32
node_modules/has-color/index.js
generated
vendored
Normal file
32
node_modules/has-color/index.js
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
'use strict';
|
||||
module.exports = (function () {
|
||||
if (process.argv.indexOf('--no-color') !== -1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (process.argv.indexOf('--color') !== -1) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (process.stdout && !process.stdout.isTTY) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (process.platform === 'win32') {
|
||||
return true;
|
||||
}
|
||||
|
||||
if ('COLORTERM' in process.env) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (process.env.TERM === 'dumb') {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
})();
|
||||
75
node_modules/has-color/package.json
generated
vendored
Normal file
75
node_modules/has-color/package.json
generated
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
{
|
||||
"_from": "has-color@~0.1.0",
|
||||
"_id": "has-color@0.1.7",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-ZxRKUmDDT8PMpnfQQdr1L+e3iy8=",
|
||||
"_location": "/has-color",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "has-color@~0.1.0",
|
||||
"name": "has-color",
|
||||
"escapedName": "has-color",
|
||||
"rawSpec": "~0.1.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "~0.1.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/gulp-rev-all/chalk"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/has-color/-/has-color-0.1.7.tgz",
|
||||
"_shasum": "67144a5260c34fc3cca677d041daf52fe7b78b2f",
|
||||
"_spec": "has-color@~0.1.0",
|
||||
"_where": "/Users/nina/Documents/Projects/saburly-website2/node_modules/gulp-rev-all/node_modules/chalk",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "http://sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/has-color/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "Detect whether a terminal supports color",
|
||||
"devDependencies": {
|
||||
"mocha": "*"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/sindresorhus/has-color#readme",
|
||||
"keywords": [
|
||||
"color",
|
||||
"colour",
|
||||
"colors",
|
||||
"terminal",
|
||||
"console",
|
||||
"cli",
|
||||
"ansi",
|
||||
"styles",
|
||||
"tty",
|
||||
"rgb",
|
||||
"256",
|
||||
"shell",
|
||||
"xterm",
|
||||
"command-line",
|
||||
"support",
|
||||
"capability",
|
||||
"detect"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "has-color",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/has-color.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"version": "0.1.7"
|
||||
}
|
||||
30
node_modules/has-color/readme.md
generated
vendored
Normal file
30
node_modules/has-color/readme.md
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
# has-color [](https://travis-ci.org/sindresorhus/has-color)
|
||||
|
||||
> Detect whether a terminal supports color.
|
||||
|
||||
Used in the terminal color module [chalk](https://github.com/sindresorhus/chalk).
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
$ npm install --save has-color
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var hasColor = require('has-color');
|
||||
|
||||
if (hasColor) {
|
||||
console.log('Terminal supports color.');
|
||||
}
|
||||
```
|
||||
|
||||
It obeys the `--color` and `--no-color` CLI flags.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
[MIT](http://opensource.org/licenses/MIT) © [Sindre Sorhus](http://sindresorhus.com)
|
||||
Reference in New Issue
Block a user