@robert.tools/eleventy-filter-flag
v1.0.0
Published
filter to add a country flag according to the country code
Maintainers
Readme
🗂️ @robert.tools/eleventy-filter-flag
filter to add a country flag according to the country code
📜 Usage
🟢 Installation
npm install @robert.tools/eleventy-filter-flag📝 Sample usage
import flag from '@robert.tools/eleventy-filter-flag';📜 Usage
{{ '🇦🇹' | flag }} {# result: "https://flagcdn.com/w40/at.png" #}
{{ 'AT' | flag(80) }} {# result: "https://flagcdn.com/w80/at.png" #}🗃️ commands
After an npm install with npm i the following commands are available:
- initialize placeholders:
npm run init <semantic> - release a new version:
npm run release <semantic>
⚖️ Notes
This software is hand-crafted, test-driven and assisted by AI tools. I know each line of my code. ✌️
| Tool | Comment | | ------------- | ------------- | | | Test-driven development with Jest | | | Part of the robert.tools ecosystem | | | Code completion | | | chatGPT research |
