think-esapi

1.1.4 • Public • Published

think-esapi

npm Build Status Coverage Status

An ESAPI(Enterprise Security API) extend for ThinkJS

How to use

Install

npm install think-esapi --save

Configure extends.js

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)

Readme

Keywords

Package Sidebar

Install

npm i think-esapi

Weekly Downloads

2

Version

1.1.4

License

MIT

Unpacked Size

7.32 kB

Total Files

9

Last publish

Collaborators

  • weihongyu12