An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/mohae/linewrap

Package linewrap wraps text so that they are n characters, or less in length. Wrapped lines can be indented or turned into comments; c, c++, and shell style comments are supported. Any /r characters encountered will be elided during the wrapping process; only /n is supported for new lines. The size of tabs is configurable. With a few exceptions, lines can be wrapped at unicode dash and whitespace characters. The classification of unicode tokens is drawn from Jukka "Yucca" Korpela's unicode tables on: https://www.cs.tut.fi/~jkorpela/unicode/linebr.html, https://www.cs.tut.fi/~jkorpela/chars/spaces.html, and https://www.cs.tut.fi/~jkorpela/dashes.html. Additionally, information from http://www.unicode.org/reports/tr14/#Properties was used. The list of symbols handled is not exhaustive. Line breaks may be inserted before or after whitespace characters. Any trailing spaces on a line will be elided. With the exception of indentation, all leading whitespaces on a wrapped line will be elided. Exceptions to whitespace characters (no break will occur): Line breaks may be inserted after a dash (hyphen) character. An em dash (U+2014) can have a break before or after its occurrence but linewrap will only break after its occurrence. A hyphen minus (U+002D) is not supposed to break on a numeric context but linewrap does not make that differentiation. Exceptions to dash characters (no break will occur):

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/mohae/linewrap
License: Apache-2.0
Latest release: over 8 years ago
First release: over 8 years ago
Namespace: github.com/mohae
Stars: 1 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 3 months ago

    Loading...
    Readme
    Loading...