shelljs-plugin-clear
Advanced tools
Comparing version
12
index.js
var plugin = require('shelljs/plugin'); | ||
var util = require('util'); | ||
var clearModule = require('clear'); | ||
// Newer versions of node use a symbol called util.inspect.custom. | ||
var inspectAttribute = util.inspect.custom || 'inspect'; | ||
function clear() { | ||
clearModule(); | ||
return { | ||
inspect: function () { | ||
return ''; | ||
}, | ||
var ret = {}; | ||
ret[inspectAttribute] = function () { | ||
return ''; | ||
}; | ||
return ret; | ||
} | ||
@@ -12,0 +16,0 @@ |
{ | ||
"name": "shelljs-plugin-clear", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A ShellJS plugin for the clear command.", | ||
@@ -30,17 +30,20 @@ "main": "index.js", | ||
"devDependencies": { | ||
"eslint": "^3.1.1", | ||
"eslint-config-airbnb-base": "^4.0.2", | ||
"eslint-plugin-import": "^1.11.1", | ||
"mocha": "^2.5.3", | ||
"shelljs": "^0.8.1", | ||
"shelljs-changelog": "^0.2.2", | ||
"shelljs-release": "^0.2.0", | ||
"should": "^10.0.0" | ||
"eslint": "^4.19.1", | ||
"eslint-config-airbnb-base": "^13.1.0", | ||
"eslint-plugin-import": "^2.17.3", | ||
"mocha": "^5.2.0", | ||
"shelljs": "^0.8.5", | ||
"shelljs-changelog": "^0.2.6", | ||
"shelljs-release": "^0.5.2", | ||
"should": "^13.2.3" | ||
}, | ||
"peerDependencies": { | ||
"shelljs": "^0.8.0" | ||
"shelljs": "^0.8.5" | ||
}, | ||
"dependencies": { | ||
"clear": "0.0.1" | ||
}, | ||
"engines": { | ||
"node": ">=4" | ||
} | ||
} |
# shelljs-plugin-clear | ||
[](https://travis-ci.org/nfischer/shelljs-plugin-clear) | ||
[](https://actions-badge.atrox.dev/nfischer/shelljs-plugin-clear/goto?ref=main) | ||
[](https://www.npmjs.com/package/shelljs-plugin-clear) | ||
@@ -5,0 +5,0 @@ [](https://github.com/shelljs/shelljs/wiki/Using-ShellJS-Plugins) |
3897
8.25%18
20%