Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/weihongyu12/think-esapi

An ESAPI(Enterprise Security API) extend for ThinkJS
https://github.com/weihongyu12/think-esapi

Last synced: about 2 months ago
JSON representation

An ESAPI(Enterprise Security API) extend for ThinkJS

Awesome Lists containing this project

README

        

# think-esapi

[![npm](https://img.shields.io/npm/v/think-esapi.svg)](https://www.npmjs.com/package/think-esapi)
[![Build Status](https://travis-ci.org/weihongyu12/think-esapi.svg?branch=master)](https://travis-ci.org/weihongyu12/think-esapi)
[![Coverage Status](https://coveralls.io/repos/github/weihongyu12/think-esapi/badge.svg?branch=master)](https://coveralls.io/github/weihongyu12/think-esapi?branch=master)

An ESAPI(Enterprise Security API) extend for ThinkJS

## How to use

### Install

```bash
npm install think-esapi --save
```

### Configure extends.js
```javascript
const esapi = require('think-esapi')

module.exports = [
esapi
];
```

## Method

- this.encodeForHTML(data)
- this.encodeForCSS(data)
- this.encodeForJS(data)
- this.encodeForURL(data)
- this.encodeForHTMLAttribute(data)
- this.encodeForBase64(data)