format-json-utils
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "format-json-utils", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "format-json-utils", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,9 +0,1 @@ | ||
<!-- | ||
* @Author: wangjunjie9 | ||
* @Date: 2023-08-21 12:14:51 | ||
* @LastEditors: wangjunjie9 | ||
* @LastEditTime: 2023-08-21 12:16:37 | ||
* @Descripttion: | ||
* @FilePath: /format-json-utils/README.md | ||
--> | ||
# format-json-utils | ||
@@ -15,3 +7,3 @@ | ||
`format-json-utils` 是一个用于在JavaScript中格式化JSON字符串的工具,它基于ES Modules (ESM) 语法实现。 | ||
`format-json-utils` 是一个用于在JavaScript中格式化JSON字符串的工具,它基于ES Modules (ESM) 语法实现。支持 Vue2、Vue3、React。。。 | ||
@@ -38,10 +30,14 @@ ## 安装 | ||
const jsonData = { | ||
name: 'John Doe', | ||
age: 30, | ||
email: 'john@example.com' | ||
}; | ||
// 场景一 | ||
const jsonData = {name: 'John Doe',age: 30,email: 'john@example.com'}; | ||
// 场景二 | ||
// const jsonData = "{\"name\": \"John Doe\", \"age\": \"30\",\"email\": \'john@example.com\'}"; | ||
const formattedJSON = formatJSON(jsonData); | ||
console.log(formattedJSON); | ||
//{ | ||
// "name":"John Doe", | ||
// "age":"30", | ||
// "email":"john@example.com" | ||
//} | ||
``` | ||
@@ -59,3 +55,2 @@ | ||
## 联系方式 | ||
如果您有任何疑问、建议或问题,请在[issues](https://github.com/ghSailing/format-json-utils/issues)留言。 | ||
如果您有任何疑问、建议或问题,请在[issues](https://github.com/ghSailing/format-json-utils/issues)留言。 |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
6592
3
121
53
1