I found a very cool collection of flags in SVG format. It can be used as CDN or added to a project with npm. The library is called ‘flag-icons’. The flags are in 2 formats – 4x4 and 1x1.

The link to the CDN is https://cdn.jsdelivr.net/gh/lipis/flag-icons@7.2.1/flags/

You can also add them to your project with npm:

npm install flag-icons