New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

grunt-exec

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-exec

Grunt task for executing shell commands.

  • 0.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
46K
decreased by-17.07%
Maintainers
1
Weekly downloads
 
Created
Source

build status grunt-exec

Grunt task for executing shell commands.

Getting Started

Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-exec

Then add this line to your project's grunt.js gruntfile:

grunt.loadNpmTasks('grunt-exec');

Documentation

This task is a multi task, meaning that grunt will automatically iterate over all exec targets if a target is not specified.

If the command used outputs to stderr, grunt-exec will display a warning and abort grunt immediately. Grunt will continue processing tasks if the --force command-line option was specified.

Target Properties

  • command(required): The shell command to be executed. Must be a string.
  • stdout(optional): Set true if you want the stdout to be printed. Defaults to false.

Example

grunt.initConfig({
  exec: {
    remove_logs: {
      command: 'rm -f *.log'
    },
    list_files: {
      command: 'ls -l **',
      stdout: true
    }
  }
});

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

Release History

  • 08/28/2012 - 0.2.1: Removed grunt as a dependency.
  • 08/23/2012 - 0.2.0: Warn on output to stderr and remove option to log stderr.
  • 04/16/2012 - 0.1.1: Fixed broken links on npm registry page.
  • 04/08/2012 - 0.1.0: Initial release.

License

Copyright (c) 2012 Jake Harding
Licensed under the MIT license.

Keywords

FAQs

Package last updated on 15 Sep 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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