Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-shell

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-shell - npm Package Compare versions

Comparing version 3.0.1 to 4.0.0

11

package.json
{
"name": "grunt-shell",
"version": "3.0.1",
"version": "4.0.0",
"description": "Run shell commands",
"license": "MIT",
"repository": "sindresorhus/grunt-shell",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
"url": "https://sindresorhus.com"
},
"engines": {
"node": ">=6"
"node": ">=12"
},

@@ -33,5 +34,5 @@ "scripts": {

"dependencies": {
"chalk": "^2.4.1",
"chalk": "^3.0.0",
"npm-run-path": "^2.0.0",
"strip-ansi": "^5.0.0"
"strip-ansi": "^6.0.1"
},

@@ -38,0 +39,0 @@ "devDependencies": {

@@ -1,2 +0,2 @@

# grunt-shell [![Build Status](https://travis-ci.org/sindresorhus/grunt-shell.svg?branch=master)](https://travis-ci.org/sindresorhus/grunt-shell)
# grunt-shell

@@ -7,16 +7,8 @@ > Run shell commands

**Use [Stack Overflow](https://stackoverflow.com/questions/tagged/gruntjs) for support questions.**
## Install
```sh
npm install --save-dev grunt-shell
```
$ npm install --save-dev grunt-shell
```
<a href="https://www.patreon.com/sindresorhus">
<img src="https://c5.patreon.com/external/logo/become_a_patron_button@2x.png" width="160">
</a>
## Usage

@@ -42,3 +34,2 @@

## Examples

@@ -185,4 +176,4 @@

*Required*<br>
Type: `string` `Function`
*Required*\
Type: `string | Function`

@@ -199,3 +190,2 @@ Command to run or a function which returns the command. Supports underscore templates.

## Options

@@ -205,3 +195,3 @@

Type: `boolean`<br>
Type: `boolean`\
Default: `true`

@@ -213,3 +203,3 @@

Type: `boolean`<br>
Type: `boolean`\
Default: `true`

@@ -221,3 +211,3 @@

Type: `boolean`<br>
Type: `boolean`\
Default: `true`

@@ -229,10 +219,10 @@

Type: `boolean`<br>
Type: `boolean`\
Default: `true`
Fail task if it encounters an error. Doesn't apply if you specify a `callback`.
Fail task if it encounters an error. Does not apply if you specify a `callback`.
### stdinRawMode
Type: `boolean`<br>
Type: `boolean`\
Default: `false`

@@ -252,3 +242,3 @@

Type: `boolean`<br>
Type: `boolean`\
Default: `true`

@@ -260,3 +250,3 @@

Type: `Object`
Type: `object`

@@ -272,6 +262,1 @@ Specify some options to be passed to the [.exec()](https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback) method:

- `killSignal` string *(Default: `'SIGTERM'`)*
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)

@@ -10,3 +10,3 @@ 'use strict';

module.exports = grunt => {
grunt.registerMultiTask('shell', 'Run shell commands', function (...args) {
grunt.registerMultiTask('shell', 'Run shell commands', function (...arguments_) {
const callback = this.async();

@@ -34,6 +34,6 @@ const options = this.options({

// Increase max buffer
options.execOptions = Object.assign({}, options.execOptions);
options.execOptions = {...options.execOptions};
options.execOptions.maxBuffer = options.execOptions.maxBuffer || TEN_MEGABYTES;
cmd = grunt.template.process(typeof cmd === 'function' ? cmd.apply(grunt, args) : cmd);
cmd = grunt.template.process(typeof cmd === 'function' ? cmd.apply(grunt, arguments_) : cmd);

@@ -40,0 +40,0 @@ if (options.preferLocal === true) {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc