{"id":21272805,"url":"https://github.com/marcells/bloggy-query","last_synced_at":"2025-03-15T12:25:47.103Z","repository":{"id":14480326,"uuid":"17192736","full_name":"marcells/bloggy-query","owner":"marcells","description":"Creates fluent methods to query for blog posts and tags in bloggy, a small and lightweight node.js blog engine.","archived":false,"fork":false,"pushed_at":"2022-09-11T11:14:41.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-22T22:11:13.589Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcells.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-25T23:58:41.000Z","updated_at":"2022-09-11T11:14:46.000Z","dependencies_parsed_at":"2022-09-19T05:00:49.474Z","dependency_job_id":null,"html_url":"https://github.com/marcells/bloggy-query","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcells%2Fbloggy-query","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcells%2Fbloggy-query/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcells%2Fbloggy-query/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcells%2Fbloggy-query/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcells","download_url":"https://codeload.github.com/marcells/bloggy-query/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243728436,"owners_count":20338255,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-21T09:09:31.607Z","updated_at":"2025-03-15T12:25:47.086Z","avatar_url":"https://github.com/marcells.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bloggy-query\n\n\u003e A set of fluent methods to query posts and tags of blog entries of bloggy, a small and lightweight blog engine for node.js.\n\n## Quickstart\n\nThat's everything you need. Just call the `engine.extendWith()` function of the bloggy engine.\n\n```Javascript\nvar engine = require('bloggy')();\n\nengine.extendWith(require('bloggy-query'));\n```\n\n## Methods\n\nAfter registering the engine contains these additional functions.\n\n\n**Get all blog entries (ordered by name)**\n\n```Javascript\nvar entries = engine.entries.all.orderedByName();\n```\n\n**Get all blog entries (ordered by date [descending])**\n\n```Javascript\nvar entries = engine.entries.all.orderedByDate();\n```\n\n**Get entries containing a specific tag slug**\n\n```Javascript\nvar entries = engine.entries.byTagSlug('Continuous-Integration');\n```\n\n**Get one entry by its slug**\n\n```Javascript\nvar entry = engine.entry.bySlug('How-to-deploy-to-Travis-CI');\n```\n\n**Get one entry by its short title**\n\n```Javascript\nvar entry = engine.entry.byShortTitle('travisdeploy');\n```\n\n**Get the latest/newest entry**\n\n```Javascript\nvar entry = engine.entry.latest();\n```\n\n**Get all tags (ordered by the number of usages)**\n\n```Javascript\nvar tags = engine.tags.all();\n\n[\n    { count: 5, tag: { name: 'tech', slug: 'tech'} },\n    { count: 4, tag: { name: 'nodejs', slug: 'nodejs'} },\n    { count: 1, tag: { name: 'Continuous Integration', slug: 'Continuous-Integration'} },\n]\n```\n\n**Get all tags names**\n\n```Javascript\nvar tagNames = engine.tags.asNames();\n\n['tech', 'nodejs', 'Continuous Integration']\n```\n\nLicense\n-------\n\nThe MIT License (MIT)\n\nCopyright (c) 2014 Marcell Spies\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcells%2Fbloggy-query","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcells%2Fbloggy-query","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcells%2Fbloggy-query/lists"}