Header menu logo Str

Logo

Str

Str on nuget.org Build Status Docs Build Status Test Status Check dotnet tools license code size

Str is an F# extension and module library for System.String It compiles to Javascript and Typescript with Fable.

It Includes:

Usage

Just open the module

open Str

this module contains: - a static class also called Str - a Computational Expressions called str - this will also auto open the extension members on System.String

then you can do:

let hello = // "Hello, World !!!"
    str {
        "Hello"
        ','
        " World "
        for i in 1..3 do
            "!"
    }

Full API Documentation

goswinr.github.io/Str

Tests

All Tests run in both javascript and dotnet. Successful Fable compilation to typescript is verified too. Go to the tests folder:

cd Tests

For testing with .NET using Expecto:

dotnet run

for JS testing with Fable.Mocha and TS verification:

npm test

License

MIT

Changelog

see CHANGELOG.md

val hello: obj

Type something to start searching.