@robert.tools/eleventy-filter-len
v1.0.0
Published
A filter to get the length of an object
Maintainers
Readme
🗂️ @robert.tools/eleventy-filter-len
A filter to get the length of an object
📜 Usage
🟢 Installation
npm install @robert.tools/eleventy-filter-len📝 Sample usage
import len from '@robert.tools/eleventy-filter-len';
📜 Usage
{{ [1, 2, 3] | len() }}
{{ [{ foo: [1, 2] }] | len('foo') }} {# get the len of the 'foo' property #}🗃️ 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 |
