# grunt-requiresafe

> Run requireSafe as a grunt task

Latest version **1.2.1** (published 2015-10-28) · Apache-2.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2015-10-28 |
| First published | 2015-10-11 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 17 |
| Author | ^Lift Security |
| Maintainers | adam_baldwin, nlf |
| Keywords | grunt, grunt, gruntplugin, nodesecurity, requiresafe, security |

## Links

- npm: https://www.npmjs.com/package/grunt-requiresafe
- Repository: https://github.com/requiresafe/grunt-requiresafe
- Homepage: https://github.com/requiresafe/grunt-requiresafe#readme
- Issues: https://github.com/requiresafe/grunt-requiresafe/issues
- npm.io page: https://npm.io/package/grunt-requiresafe

## Dependencies (3)

- [chalk](https://npm.io/package/chalk.md) ^1.1.1
- [cli-table](https://npm.io/package/cli-table.md) ^0.3.1
- [requiresafe](https://npm.io/package/requiresafe.md) ^2.3.0

## Recent versions

- 1.2.1 (latest) — 2015-10-28
- 1.2.0 — 2015-10-21
- 1.1.2 — 2015-10-19
- 1.1.1 — 2015-10-13
- 1.1.0 — 2015-10-13
- 1.0.1 — 2015-10-12
- 1.0.0 — 2015-10-11

## README

# grunt-requiresafe
> Checks your package.json / npm-shrinkwrap.json against the requireSafe(+) API for dependencies with known vulnerabilities.


## Getting Started

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-requiresafe --save-dev
```

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

```js
grunt.initConfig({
  requiresafe: {
    package: grunt.file.readJSON('package.json')
  }
});

grunt.loadNpmTasks('grunt-requiresafe');
```

## Options
This package supports the following options.

- package (object): The contents of a single package.json file [required]
- shrinkwrap (object): The contents of a single npm-shrinkwrap.json file (optional, but is a much more efficient check)

## Command Line Options

--package  
Path to a package.json file  
Example `grunt requiresafe --package ./package.json`
    
--shrinkwrap  
Path to a npm-shrinkwrap.json file  
Example `grunt requiresafe --shrinkwrap ./npm-shrinkwrap.json`

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