Deno | The SpaceX Launch Project
A starting point for using Fetch in Deno
-
Browser Fetch API: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
-
Deno Fetch: https://deno.land/manual/examples/fetch_data
-
SpaceX:
- General: https://www.spacex.com/
- Github: https://github.com/r-spacex/SpaceX-API
- Postman: https://docs.spacexdata.com/
-
Allowing a specific URL:
deno run --allow-net=api.spacexdata.com mod.ts
-
Standard Logging Library: https://deno.land/std@0.72.0/log
log.debug('Hello world'); log.info(123456); log.warning(true); log.error({ foo: 'bar', fizz: 'bazz' }); log.critical('500 Internal server error');
-
flatmap Method creates a flattened array of values by running each element in collection thru iteratee and flattening the mapped results. The iteratee is invoked with three arguments: (value, index|key, collection). More info: https://lodash.com/docs/4.17.15#flatMap
-
import.meta is only available inside the modules, and you can use it to specify specific data to be display outside it.
if(import.meta.main){}