My First Playground

node v8.17.0
version: 1.0.0
endpointsharetweet
This is a playground to test JavaScript. It runs a completely standard copy of Node.js on a virtual server created just for you. Every one of npm’s 300,000+ packages are pre-installed, so try it out:
// We can use any package from NPM since they are all built in. const getJSON = require("async-get-json"); // And we can use ES7 async/await to pull the ISS's position from the open API. const dict = await getJSON("https://raw.githubusercontent.com/dwyl/english-words/master/words_dictionary.json"); const express = require("@runkit/runkit/express-endpoint/1.0.0"); const app = express(exports); app.get("/", (req, res) => dict[req.params.name])
Loading…

no comments

    sign in to comment