Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
CN-Tower committed Oct 10, 2020
1 parent d82a0b4 commit e833b4b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#### In HTML
```html
<script src="https://unpkg.com/[email protected].3/format2json.min.js"></script>
<script src="https://unpkg.com/[email protected].4/format2json.min.js"></script>
<script>
const source = `{"zjson":"ZJSON","description":"Online json formatter","version":"v4.1.8","updateTime":"2018-11-23","url":"http:https://zjson.net","project":"http:https://github.com/CN-Tower/zjson","language":["中文(简体)","English"],"keywords":["zjson","json formatter"],"content":{"array":["element 001","element 002"],"boolean":true,"null":null,"number":123,"string":"Hello World","object":{"property":"value","key":"val"}}}`;
const jsonLike = await format2json(source, { resultOnly: true });
Expand Down Expand Up @@ -134,7 +134,7 @@ Run: `format2json -i 4 -k "" -v "'"`
√ Input a string to foramt: · [{name: "Tom", age: 28, gender: "male"}]
==================================================================
[10:42:20] format-to-json(1.0.3)
[10:42:20] format-to-json(1.0.4)
------------------------------------------------------------------
[
{
Expand Down
2 changes: 1 addition & 1 deletion format2json.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* format-to-json v1.0.3
* format-to-json v1.0.4
* GitHub Repository <https://github.com/CN-Tower/format-to-json>
* Released under MIT license <https://github.com/CN-Tower/format-to-json/blob/master/LICENSE>
*/
Expand Down
2 changes: 1 addition & 1 deletion format2json.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "format-to-json",
"version": "1.0.3",
"version": "1.0.4",
"description": "Format string to a json like template.",
"main": "index.js",
"bin": {
Expand Down Expand Up @@ -36,8 +36,7 @@
"dependencies": {
"commander": "^2.19.0",
"enquirer": "^2.3.6",
"funclib": "^4.0.6",
"readline-sync": "^1.4.10"
"funclib": "^4.0.6"
},
"devDependencies": {
"babel-cli": "^6.26.0",
Expand Down
2 changes: 1 addition & 1 deletion scripts/license.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* format-to-json v1.0.3
* format-to-json v1.0.4
* GitHub Repository <https://github.com/CN-Tower/format-to-json>
* Released under MIT license <https://github.com/CN-Tower/format-to-json/blob/master/LICENSE>
*/

0 comments on commit e833b4b

Please sign in to comment.