0.1.1 • Published 6 years ago

flagfinder v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

Flag Finder

Little javascript to find all Emoji flags in text.

code style: prettier

Usage

Simply call the exported method with the input text containing Emoji flags as String parameter. The method returns all found Emoji flags in appearing order as Array of ISO 3166 country codes.

const flagfinder = require('./flagfinder.js');
flagfinder('Foo 🇩🇪 foobar 🇳🇱🇫🇮 baz');

returns [ 'DE', 'NL', 'FI' ]

Testing

Call npm test to run the testing using jest.

0.1.1

6 years ago

0.1.0

6 years ago