8000 add full dime printing: wood, woad, part of rend:co · Issue #51 · urbit/urbit-ob · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
add full dime printing: wood, woad, part of rend:co #51
Open
@will-hanlen

Description

@will-hanlen

it would be useful to encode dimes into cords on a js client.

that way a client can send a typed atom instead of needing to handle
parsing on the backend.

for dates and numbers the encodings to strings are fairly simple:

~yyyy.m.d..h.mm.ss
0x0000.0000
etc

but i do not know of a way to do knot escaping in javascript.

please let me know if there's already a way to do this


so i propose adding to this js library +wood, +woad, and the js equivalents
of +rend:co for turning JS objects into dime strings.

> (wood 'foo bar!')
~.foo.bar~21.

> (woad ~.foo.bar~21.)
'foo bar!'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0