Back to APIs list

US Congress Stock Trading API examples & templates

Use these vals as a playground to view and fork US Congress Stock Trading API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
postpostscript avatar
postpostscript
multiFormat
Script
multiFormat: easily create outputs of multiple formats (e.g. text/html for Email) using tagged templates Examples import { format } from "https://esm.town/v/postpostscript/multiFormat"; console.log(format.Plain` ${format.Heading1`Some Heading`} Lorem ipsum dolor ${format.Strong`sit`} amet `); { "text": "\nSome Heading\n\nLorem ipsum dolor sit amet\n", "html": "\n<br><h1>Some Heading</h1>\n<br>\n<br>Lorem ipsum dolor <strong>sit</strong> amet\n<br>" } Create Your Own Formatters import { createFormatMethod, wrapHTMLTag, type MultiFormatWithHTML } from "https://esm.town/v/postpostscript/multiFormat"; export const Red = createFormatMethod<MultiFormatWithHTML>((value) => { return wrapHTMLTag("span", value, { style: "color: red;", }); }); console.log(Red`red text!`) { "text": "red text!", "html": "<span style=\"color: red;\">red text!</span>" } Sanitization Text is automatically sanitized when converted to HTML: console.log(format.Trim` ${format.Heading1`Some Heading`} <script>alert(1)</script> `.html.toString()) <h1>Some Heading</h1> <br> <br>&lt;script&gt;alert(1)&lt;/script&gt;
0
hussamgalal999 avatar
hussamgalal999
upstandingAmberPuffin
HTTP
@jsxImportSource https://esm.sh/react@18.2.0
0
jeffreyyoung avatar
jeffreyyoung
freshBeigeScorpion
HTTP
Forked from jeffreyyoung/bot1
0
tylergaw avatar
tylergaw
socialImageUsageCSS
Script
An interactive, runnable TypeScript val by tylergaw
0
dhvanil avatar
dhvanil
val_aVQs45AhGk
HTTP
An interactive, runnable TypeScript val by dhvanil
0
charmaine avatar
charmaine
cancelledStripeSubscriber
HTTP
Forked from stevekrouse/newStripeSubscriber
0
jeffreyyoung avatar
jeffreyyoung
sharedMagentaChameleon
HTTP
Forked from jeffreyyoung/MazeBot
0
dhvanil avatar
dhvanil
val_lMsx7C9XfR
Script
An interactive, runnable TypeScript val by dhvanil
0
SowrovCIV avatar
SowrovCIV
robustCoralPigeon
HTTP
@jsxImportSource https://esm.sh/react@18.2.0
0
adagradschool avatar
adagradschool
claude_fa6b572a_8ee1_47bc_bbcf_4c2f2a03d71e
HTTP
An interactive, runnable TypeScript val by adagradschool
0
ning avatar
ning
sendSwedishTime
Script
An interactive, runnable TypeScript val by ning
0
dhvanil avatar
dhvanil
val_t5b9tBdMU6
HTTP
An interactive, runnable TypeScript val by dhvanil
0
stevekrouse avatar
stevekrouse
spotifyClientId
Script
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
telegramValTownBotWebhookSetup
Script
An interactive, runnable TypeScript val by stevekrouse
0
neverstew avatar
neverstew
thisWebEndpoint
Script
Forked from stevekrouse/thisEmail
0
dhvanil avatar
dhvanil
val_9Vk5LnFz7t
Script
An interactive, runnable TypeScript val by dhvanil
0