A Typescript port of ifconfig.co
to Cloudflare Worker. Online demo: https://ifconfig.codeb2cc.com/
src/index.js
calls the request handler in src/handler.ts
, and will return the request method for the given request.
This template comes with mocha tests which simply test that the request handler can handle each request method. npm test
will run your tests.
This template uses prettier
to format the project. To invoke, run npm run format
.
For information on how to preview and publish your worker, please see the wrangler
README.