Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/weihongyu12/think-esapi
An ESAPI(Enterprise Security API) extend for ThinkJS
https://github.com/weihongyu12/think-esapi
Last synced: 26 days ago
JSON representation
An ESAPI(Enterprise Security API) extend for ThinkJS
- Host: GitHub
- URL: https://github.com/weihongyu12/think-esapi
- Owner: weihongyu12
- License: mit
- Created: 2017-11-20T08:02:04.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T01:32:27.000Z (almost 2 years ago)
- Last Synced: 2024-11-07T08:51:25.895Z (about 1 month ago)
- Language: JavaScript
- Size: 1.06 MB
- Stars: 11
- Watchers: 2
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- think-awesome - think-esapi
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)