"The most dangerous js library I know"
– Data Science OG
– Data Science OG
OG I/O... what it's all 'bout?
Install
npm i ogio
Fetch!
"file.txt"// => This is a text
await "@file.txt"// => This is the same text, but async
"file.json"// => {txt: "Parsed json"}
await "https://example.com"// => <html> ... </html>
await "https://example.com/file.json"// => {txt: "Parsed json from example.com"}
Save!
"file.txt"// => This will be a text
await "@file.txt"// => The same text, but async
"file.json"// => {// "txt": "json smth"// }
...More stuff is coming