Fully implemented API

This commit is contained in:
Arjun Patel
2018-06-25 21:41:46 -07:00
parent 4cbe20aed9
commit f9e0a923ee
397 changed files with 63812 additions and 2 deletions
+43
View File
@@ -0,0 +1,43 @@
# escape-html
Escape string for use in HTML
## Example
```js
var escape = require('escape-html');
var html = escape('foo & bar');
// -> foo & bar
```
## Benchmark
```
$ npm run-script bench
> [email protected] bench nodejs-escape-html
> node benchmark/index.js
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
modules@11
[email protected]
1 test completed.
2 tests completed.
3 tests completed.
no special characters x 19,435,271 ops/sec ±0.85% (187 runs sampled)
single special character x 6,132,421 ops/sec ±0.67% (194 runs sampled)
many special characters x 3,175,826 ops/sec ±0.65% (193 runs sampled)
```
## License
MIT