# zero-security

> This module secure relier's model with varied strategies.

Latest version **0.0.7** (published 2014-11-28) · 5 weekly downloads

## Install

```sh
npm install zero-security
pnpm add zero-security
yarn add zero-security
bun add zero-security
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2014-11-28 |
| First published | 2014-11-02 |
| Weekly downloads | 5 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | jiamiu |
| Maintainers | sskyy |
| Keywords | zero module |

## Links

- npm: https://www.npmjs.com/package/zero-security
- npm.io page: https://npm.io/package/zero-security

## Dependencies (1)

- [xss](https://npm.io/package/xss.md) ^0.1.12

## Recent versions

- 0.0.7 (latest) — 2014-11-28
- 0.0.6 — 2014-11-27
- 0.0.5 — 2014-11-14
- 0.0.4 — 2014-11-06
- 0.0.3 — 2014-11-02
- 0.0.2 — 2014-11-02

## README

# zero-security #

This module secure relier's model with varied strategies.

## Usage ##

1. Add dependency to your module package.json file like:

```
{
	"name" : "YOUR_MODULE_NAME",
	"zero" : {
		"dependencies" : {
			"security" : "^0.0.1"
		}
	}
}
```

2. make your model as:

```
module.models = [{
    identity : 'post',
    attributes : {
    	content : 'string'
    },
    security : {
        "content" : ['xss']
	}
},{
    identity : 'user',
    attributes : {
    	password : 'string'
    },
    security : {
		"password" : ['password']
	}
}]
```

3. Current supported secure strategies: `xss`, `encryptPermanent`, `password`.

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