Dev Null

A JS function and API inspired by /dev/null that will throw away whatever you send it and return null.

Function usage

@stevekrouse.devNull("useless  data")

API Usage

https://api.val.town/v1/run/stevekrouse.devNull?args=[%22useless%20data%22]

Why?

Honestly I don't know why you'd use this function. I just made it as a joke to link to it from @stevekrouse.dm. I guess you could also use it a joke to send data you want to call attention to the fact that you very much don't care about it, ie I really don't care about the price of bitcoin:

@stevekrouse.devNull(await  @stevekrouse.currency("usd", "btc"))
Readme
1
2
3
export function devNull(...args: any[]) {
return null;
}
👆 This is a val. Vals are TypeScript snippets of code, written in the browser and run on our servers. Create scheduled functions, email yourself, and persist small pieces of data — all from the browser.
Comments
stevekrouse avatar

this is a terrible no good val that nobody should ever use - shame on you for writing it