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

github.com/patrickbucher/typography

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/patrickbucher/typography

  • v0.0.1
  • Source
  • Go
  • Socket score

Version published
Created
Source

Typography

This is a module that replaces some characters and sequences of characters often to be seen in text files with their typographycally correct counterparts. Right now it's replacing:

  • three dots (...) with an ellipsis (…)
  • two dashes (--) with an ndash (–)
  • three dashes (---) with an mdash (—)
  • double quotes ("") with nice double quotes
  • single quotes ('') with nice single quotes
  • single quotes within words (don't) with an apostrophe (don’t)

Quote Styles

Four quote styles (typography.QuoteStyle) are supported:

  • English style: “” (double) and ‘’ (single)
    • typography.QuoteStyle.English
  • German style: „“ (double) and ‚‘ (single)
    • typography.QuoteStyle.German
  • Guillemets: «» (double) and ‹› (single)
    • typography.QuoteStyle.Guillemets
  • Reverse Guillemets: »« (double) and ›‹ (single)
    • typography.QuoteStyle.ReverseGuillemets

Client

I implemented a client that takes text from os.Stdin, beautifies it, and writes it to os.Stdout. It can be found in the cmd folder (beautify.go). It supports the quote styles mentioned above using the flags -e (English style), -d (German style), -g (Guillemets) and -r (reverse Guillemets).

FAQs

Package last updated on 10 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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