Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 806 Bytes

File metadata and controls

55 lines (37 loc) · 806 Bytes

Cloudflare Country Codes API

A simple API that uses the CF-IPCountry header in a Cloudflare worker to determine the requests country and then return a list of information about said country.

Uses Cloudflare Workers and Hono.

Try Me!

Commands

Running locally:

npm run dev

Testing:

# run all tests
npm run tests

# run test coverage
npm run tests:coverage

# run test coverage summary
npm run tests:summary

Linting:

# run ESLint
npm run lint

# fix ESLint errors
npm run lint:fix

# run prettier
npm run prettier

# fix prettier errors
npm run prettier:fix

Deploy to Cloudflare:

npm run deploy:dev
npm run deploy:prod

License

MIT