JSON格式化与校验CLI工具,支持管道输入、缩进控制和颜色高亮
Prettifier for Pino log lines
The best of both `JSON.stringify(obj)` and `JSON.stringify(obj, null, indent)`.
JSON schema generator based on draft-v4.
Fast CBOR with a focus on strictness
[![npm version][npm-v-src]][npm-v-href] [![npm downloads][npm-d-src]][npm-d-href] [![status][github-actions-src]][github-actions-href]
[![npm version][npm-v-src]][npm-v-href] [![npm downloads][npm-d-src]][npm-d-href] [![status][github-actions-src]][github-actions-href]
A JSON tree view component that is easy to use and also supports data selection.
A node module to convert JSON to YAML
Fork of pretty-format with support for ESM
plugin to pretty-print or minify XML, JSON, CSS and SQL files
Pretty formatter for ESLint
A library to format JSON with colors for display in the console
extended POSIX-style sprintf
TypeScript execution environment and REPL for node.js, with source map support
JSON logger for Node.js and browser.
Utility to convert specifications (Open API, JSON Schemas) to TypeScript using TypeScript native compiler
See nodejs errors with less clutter
A code formatting tool for raw json data
➡️ An ES6 string tag that makes indentation right
This project exposes the available formatters from the CLI for users that perform custom validation through Javascript.
Stringify any JavaScript value.
A pretty Stylelint formatter.
Pretty-print JSON data into HTML to indent and colorize (written in functional TypeScript)
A very simple command line JSON pretty printer that operates on STDIN input
Using awesome_print gem, pretty-print JSON in terminal.
A simple command line tool to pretty-print JSON with colors using Ruby.
A full-featured TOON encoder/decoder with JSON feature parity: streaming, hooks, pretty generate, strict parsing, schema hints, CLI and ActiveSupport integration.
# Otto AsciiDoc-powered static site generator with Jekyll-style conventions: layouts, includes, data files, posts, drafts, permalinks, and custom collections. ## Install ```sh gem install ottogen ``` Requires Ruby 3.0 or newer. ## Quickstart ```sh mkdir mysite && cd mysite otto init otto build otto serve open http://127.0.0.1:8778/ ``` For a longer walkthrough including AsciiDoc syntax, see [GUIDE.md](GUIDE.md). ## Commands | Command | Description | |---|---| | `otto init [DIR]` | Scaffold a new site (current dir if omitted) | | `otto build` | Render the site to `_build/` | | `otto build --drafts` | Include posts from `_drafts/` | | `otto watch` | Rebuild on file change | | `otto serve` | Serve `_build/` on port 8778 | | `otto generate PAGE` | Create a new page in `pages/` | | `otto post "Title"` | Create a new dated post in `_posts/` | | `otto clean` | Delete `_build/` | | `otto doctor` | Sanity-check project layout | ## Project layout ``` my-site/ ├── .otto # marker ├── config.yml # site config ├── assets/ # copied verbatim into _build/ ├── pages/ # AsciiDoc pages, output mirrors path ├── _layouts/ # ERB layouts (.html.erb) ├── _includes/ # ERB partials ├── _data/ # YAML/JSON files exposed as site.data.* ├── _posts/ # YYYY-MM-DD-slug.adoc └── _drafts/ # undated drafts (excluded by default) ``` ## Configuration (`config.yml`) ```yaml title: My Otto Site description: Things I write url: https://example.com baseurl: "" permalink: /:year/:month/:day/:slug/ collections: recipes: output: true ``` `permalink` accepts these tokens: `:year`, `:month`, `:day`, `:slug`, `:title`. Templates ending in `/` produce pretty URLs (`<path>/index.html`). ## Pages and posts Both support YAML front matter: ```adoc --- layout: default title: Hello tags: [ruby, cli] --- = Hello Welcome to {site_title}. This page is at {page_url}. ``` Pages live under `pages/`; posts under `_posts/` with `YYYY-MM-DD-slug.adoc` names. Layouts wrap rendered AsciiDoc; partials in `_includes/` are pulled in via `<%= partial 'header.html' %>`. ## License MIT