https://github.com/weihongyu12/think-esapi
An ESAPI(Enterprise Security API) extend for ThinkJS
https://github.com/weihongyu12/think-esapi
Last synced: 5 months 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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T01:32:27.000Z (over 2 years ago)
- Last Synced: 2024-11-07T08:51:25.895Z (5 months 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
[](https://www.npmjs.com/package/think-esapi)
[](https://travis-ci.org/weihongyu12/think-esapi)
[](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)