escape-ts
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

escape-ts

JS 标准库 方法 escapeunescape 的 TypeScript 实现。

npm version

尽管 escapeunescape 方法在当前 web 标准中已被移除。

但是由于它们和 encodeURIencodeURIComponent 方法的转义规则不一样。

因此为了兼容一些老代码,特意保留了此备份。

使用

pnpm i escape-ts

import { escapeString, unescapeString } from 'escape-ts'

Readme

Keywords

Package Sidebar

Install

npm i escape-ts

Weekly Downloads

2

Version

1.0.6

License

MIT

Unpacked Size

3.98 kB

Total Files

7

Last publish

Collaborators

  • bit2byte