New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

format-json-utils

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

format-json-utils - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"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)留言。
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc