fission-suite/webnative-elm/2.1.0

NOTE: the latest version is 7.0.0

Renamed to fission-codes/webnative-elm. It is published under that name, and new versions come out there.

Versions published as fission-suite/webnative-elm still install under that name. 9 versions of 9 come from the new location (see their notes).

Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/fission-codes/webnative-elm.

What we checked: The repo moved to github.com/fission-codes/webnative-elm. Rebuilt with git archive from commit 226279036a9a of https://github.com/fission-codes/webnative-elm (zip prefix fission-suite-webnative-elm-2262790/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 09e51ed1ff6c2819d3b374aba9b39a057c432a01.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/fission-suite/webnative-elm/zipball/2.1.0/

Wnfs

Interact with your filesystem.

Actions

publish : Request

Publish your changes to your filesystem. 📢 You should run this after doing mutations. See README examples for more info.

Mutations

mkdir : Base -> Attributes -> Request

Create a directory.

mv :
-> { from : List String
, to : List String
, tag : String
}
-> Request

Move.

rm : Base -> Attributes -> Request

Remove.

write : Base -> Attributes -> Bytes -> Request

Write to the filesystem using Bytes.

writeUtf8 : Base -> Attributes -> String -> Request

Write to the filesystem using a String.

Queries

exists : Base -> Attributes -> Request

Check if something exists in the filesystem.

ls : Base -> Attributes -> Request

List a directory.

read : Base -> Attributes -> Request

Read something from the filesystem in the form of Bytes.

readUtf8 : Base -> Attributes -> Request

Read something from the filesystem in the form of a String.

Aliases

add : Base -> Attributes -> Bytes -> Request

Alias for write.

cat : Base -> Attributes -> Request

Alias for read.

Types

type Base
= AppData AppPermissions
| Private
| Public

Base of the WNFS action.

type alias Attributes =
{ path : List String
, tag : String
}

WNFS action attributes.