codegear/json-formatter 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

codegear/json-formatter

最新稳定版本:1.0.2

Composer 安装命令:

composer require codegear/json-formatter

包简介

Command-line tool to pretty-print JSON string for human readability

README 文档

README

Command-line tool to pretty-print JSON string for human readability by PHP.

https://whitephp.net/2018/07/31/jf-cli-json-formatter.html

Requirements

PHP needs to be a minimum version of PHP 7.0.0.

Installation

Globally by using Composer:

$ composer global require codegear/json-formatter

Usage

In Command-Line

Format file data.json and output to screen:

$ jf data.json

Format file data.json and save to another file data_formatted.json:

$ jf data.json > data_formatted.json

In VIM

Format current file:

:%!jf %

or add a keymap in vimrc:

nnoremap <Leader>jf :%!jf %<CR>

统计信息

  • 总下载量: 99
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2019-10-01