This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
1.0.0
We were not able to find the expected elm-package.json file at this tag.
Tag 1.0.1
Committed At 2018-08-30 05:58:59 UTC

Modules

    README

    QS

    Codeship Status for sporto/qs

    An opinionated query string parser for Elm. Based on https://github.com/ljharb/qs

    QS users [] for lists.

    E.g.

    ?ids[]=1&ids[]=2
    

    Parse query

    Convert a query string to a QS.Query

    QS.parse
        QS.config
        "?a=1&b=x"
    
    == Dict.fromList
        [ ( "a", One <| Number 1 )
        , ( "b", One <| Str "x" ) 
        ]
    

    Serialize

    Convert a QS.Query to a query string

    query =
        Dict.fromList
            [ ( "a", QueryString "1" )
            , ( "b", QueryString "2" ) 
            ]
    
    QS.serialize
        Qs.config 
        query
    
    ==
    
    "?a=1&b=2"
    

    Decode query

    Convert JSON to a QS.Query

    json =
            """{"a":["x", 1, true]}"""
    
    Decode.decodeString QS.decoder json
    

    Encode query

    Convert a QS.Query to JSON

    query =
        Many [ Str "x", Boolean True ] )
    
    encodedQuery =
        QS.encode query
    
    Encode.encode 0 encodedQuery
    

    Transform a query

    Function for getting, setting, removing keys in the query. See the documentation.