repr

String formatters.


Keywords
format, show, strings, trim
License
MIT
Install
psc-package install repr

Documentation

repr

String formatters.

Review Version Quality

Installation

spago install repr

Documentation

Documentation and more detailed examples are hosted on Github Pages.

Usage

Join an Array into with a delimeter:

> joinWith ", " [ 1, 2, 3 ]
"1, 2, 3"

Format a Map into a readable (and debuggable) format:

> kvStrings $ fromFoldable [ Tuple "a" 1 , Tuple "b" 2 , Tuple "c" 3]
[ "a: 1", "b: 2", "c: 3" ]

Trim substrings:

> trimStart "a" "abc"
"bc"

> trimStart "d" "abc"
"abc"
> trimEnd "c" "abc"
"ab"

> trimEnd "d" "abc"
"abc"

Tooling

Tests

To run tests:

spago test

Documentation

To generate the documentation locally:

spago docs

Linters

To run linters:

npm run lint

Formatters

To run formatters:

npm run format

Contributing

Please read this repository's Code of Conduct which outlines our collaboration standards and the Changelog for details on breaking changes that have been made.

This repository adheres to semantic versioning standards. For more information on semantic versioning visit SemVer.

Bump2version is used to version and tag changes. For example:

bump2version patch

Contributors

Remarks

Lots of love to the open source community!

Be kind to your mind Love each other It's ok to have a bad day