{"id":13781748,"url":"https://github.com/weihongyu12/think-esapi","last_synced_at":"2025-05-11T15:31:59.500Z","repository":{"id":27368407,"uuid":"111379623","full_name":"weihongyu12/think-esapi","owner":"weihongyu12","description":"An ESAPI(Enterprise Security API) extend for ThinkJS","archived":false,"fork":false,"pushed_at":"2023-01-06T01:32:27.000Z","size":1115,"stargazers_count":11,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-21T05:43:05.565Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/weihongyu12.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-20T08:02:04.000Z","updated_at":"2020-07-25T03:22:13.000Z","dependencies_parsed_at":"2023-01-14T06:35:48.467Z","dependency_job_id":null,"html_url":"https://github.com/weihongyu12/think-esapi","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weihongyu12%2Fthink-esapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weihongyu12%2Fthink-esapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weihongyu12%2Fthink-esapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weihongyu12%2Fthink-esapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weihongyu12","download_url":"https://codeload.github.com/weihongyu12/think-esapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253588599,"owners_count":21932286,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T18:01:28.913Z","updated_at":"2025-05-11T15:31:59.151Z","avatar_url":"https://github.com/weihongyu12.png","language":"JavaScript","funding_links":[],"categories":["Others"],"sub_categories":["websocket"],"readme":"# think-esapi\n\n[![npm](https://img.shields.io/npm/v/think-esapi.svg)](https://www.npmjs.com/package/think-esapi)\n[![Build Status](https://travis-ci.org/weihongyu12/think-esapi.svg?branch=master)](https://travis-ci.org/weihongyu12/think-esapi)\n[![Coverage Status](https://coveralls.io/repos/github/weihongyu12/think-esapi/badge.svg?branch=master)](https://coveralls.io/github/weihongyu12/think-esapi?branch=master)\n\nAn ESAPI(Enterprise Security API) extend for ThinkJS\n\n## How to use\n\n### Install\n\n```bash\nnpm install think-esapi --save\n```\n\n### Configure extends.js\n```javascript\nconst esapi = require('think-esapi')\n\nmodule.exports = [\n  esapi\n];\n```\n\n## Method\n\n- \u003ccode\u003ethis.encodeForHTML(data)\u003c/code\u003e\n- \u003ccode\u003ethis.encodeForCSS(data)\u003c/code\u003e\n- \u003ccode\u003ethis.encodeForJS(data)\u003c/code\u003e\n- \u003ccode\u003ethis.encodeForURL(data)\u003c/code\u003e\n- \u003ccode\u003ethis.encodeForHTMLAttribute(data)\u003c/code\u003e\n- \u003ccode\u003ethis.encodeForBase64(data)\u003c/code\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweihongyu12%2Fthink-esapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweihongyu12%2Fthink-esapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweihongyu12%2Fthink-esapi/lists"}