Readme

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"))
1
2
3
export function devNull(...args: any[]) {
return null;
}
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
1
stevekrouse avatar

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

v2
October 23, 2023