Changeset 0c6b92a for imaps-frontend/node_modules/jsesc/README.md
- Timestamp:
- 12/12/24 17:06:06 (5 weeks ago)
- Branches:
- main
- Parents:
- d565449
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/jsesc/README.md
rd565449 r0c6b92a 1 # jsesc [![Build status](https://travis-ci.org/mathiasbynens/jsesc.svg?branch=master)](https://travis-ci.org/mathiasbynens/jsesc) [![Code coverage status](https://coveralls.io/repos/mathiasbynens/jsesc/badge.svg)](https://coveralls.io/r/mathiasbynens/jsesc) [![Dependency status](https://gemnasium.com/mathiasbynens/jsesc.svg)](https://gemnasium.com/mathiasbynens/jsesc)1 # jsesc [![Build status](https://travis-ci.org/mathiasbynens/jsesc.svg?branch=master)](https://travis-ci.org/mathiasbynens/jsesc) [![Code coverage status](https://coveralls.io/repos/mathiasbynens/jsesc/badge.svg)](https://coveralls.io/r/mathiasbynens/jsesc) 2 2 3 3 Given some data, _jsesc_ returns a stringified representation of that data. jsesc is similar to `JSON.stringify()` except: … … 203 203 * U+2029 `\u2029` 204 204 * whatever symbol is being used for wrapping string literals (based on [the `quotes` option](#quotes)) 205 * [lone surrogates](https://esdiscuss.org/topic/code-points-vs-unicode-scalar-values#content-14) 205 206 206 207 Note: with this option enabled, jsesc output is no longer guaranteed to be ASCII-safe. … … 249 250 #### `indent` 250 251 251 The `indent` option takes a string value, and defaults to `'\t'`. When the `compact` setting is enabled (`true`), the value of the `indent` option is used to format the output for arrays and objects.252 The `indent` option takes a string value, and defaults to `'\t'`. When the `compact` setting is disabled (`false`), the value of the `indent` option is used to format the output for arrays and objects. 252 253 253 254 ```js … … 407 408 ## Support 408 409 409 As of v 2.0.0, jsesc supports Node.js v4+ only.410 As of v3.0.0, jsesc supports Node.js v6+ only. 410 411 411 412 Older versions (up to jsesc v1.3.0) support Chrome 27, Firefox 3, Safari 4, Opera 10, IE 6, Node.js v6.0.0, Narwhal 0.3.2, RingoJS 0.8-0.11, PhantomJS 1.9.0, and Rhino 1.7RC4. **Note:** Using the `json` option on objects or arrays that contain non-string values relies on `JSON.parse()`. For legacy environments like IE ≤ 7, use [a `JSON` polyfill](https://bestiejs.github.io/json3/).
Note:
See TracChangeset
for help on using the changeset viewer.