# grunt-force

> The stupid force-flag toggler.

Latest version **1.0.0** (published 2014-02-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install grunt-force
pnpm add grunt-force
yarn add grunt-force
bun add grunt-force
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2014-02-06 |
| First published | 2014-02-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Shannon Moeller |
| Maintainers | shannonmoeller |
| Keywords | grunt |

## Links

- npm: https://www.npmjs.com/package/grunt-force
- Repository: https://github.com/shannonmoeller/grunt-force
- Issues: https://github.com/shannonmoeller/grunt-force/issues
- npm.io page: https://npm.io/package/grunt-force

## Recent versions

- 1.0.0 (latest) — 2014-02-06

## README

# grunt-force

> The stupid force-flag toggler.

## Getting Started

This plugin requires Grunt `~0.4.0`

If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install grunt-force --save-dev
```

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

```js
grunt.loadNpmTasks('grunt-force');
```

## Tasks

### `force:on`

Sets the `force` option to `true`.

### `force:off`

Sets the `force` option to `false`.

### `force` or `force:reset`

Sets the `force` option back to its original value. Defaults to `false`, but would be `true` if Grunt was executed with the `--force` flag.

## Example

```js
grunt.registerTask('default', [
    'force:on',
    'csslint',
    'jshint',
    'force:off',
    'testTask',
    'force:reset',
    'buildTask'
]);
```

## Contributing

Make sure you've installed [Node.js](http://nodejs.org), which ships with [npm](http://npmjs.org).

```sh
# Install Grunt globally
$ npm install -g grunt-cli

# Clone the repository
$ git clone git://github.com/shannonmoeller/grunt-force
$ cd grunt-force
```

## License

MIT

---
_Source: https://npm.io/package/grunt-force · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
