{"id":17323968,"url":"https://github.com/strugee/node-crawl-mf2","last_synced_at":"2026-01-27T01:03:24.761Z","repository":{"id":142464516,"uuid":"129488304","full_name":"strugee/node-crawl-mf2","owner":"strugee","description":"Crawl microformats2 data for h-entry and h-feeds","archived":false,"fork":false,"pushed_at":"2024-05-07T20:56:15.000Z","size":214,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-12T23:39:56.127Z","etag":null,"topics":["hacktoberfest","indieweb","javascript","mf2","microformats2","nodejs","small-modules"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/strugee.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-14T06:24:11.000Z","updated_at":"2021-10-07T17:16:32.000Z","dependencies_parsed_at":"2024-05-07T21:41:42.372Z","dependency_job_id":"849ed60a-2bda-40db-bd53-e2f503ea57dc","html_url":"https://github.com/strugee/node-crawl-mf2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/strugee/node-crawl-mf2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strugee%2Fnode-crawl-mf2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strugee%2Fnode-crawl-mf2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strugee%2Fnode-crawl-mf2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strugee%2Fnode-crawl-mf2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strugee","download_url":"https://codeload.github.com/strugee/node-crawl-mf2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strugee%2Fnode-crawl-mf2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28794564,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T21:49:50.245Z","status":"ssl_error","status_checked_at":"2026-01-26T21:48:29.455Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["hacktoberfest","indieweb","javascript","mf2","microformats2","nodejs","small-modules"],"created_at":"2024-10-15T14:09:43.023Z","updated_at":"2026-01-27T01:03:24.739Z","avatar_url":"https://github.com/strugee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `crawl-mf2`\n\n[![Build Status](https://travis-ci.org/strugee/node-crawl-mf2.svg?branch=master)](https://travis-ci.org/strugee/node-crawl-mf2)\n[![Coverage Status](https://coveralls.io/repos/github/strugee/node-crawl-mf2/badge.svg?branch=master)](https://coveralls.io/github/strugee/node-crawl-mf2?branch=master)\n[![Greenkeeper badge](https://badges.greenkeeper.io/strugee/node-crawl-mf2.svg)](https://greenkeeper.io/)\n\nCrawl a [microformats2][] site to find things like canonical URLs for `h-entry`s\n\nNote: this module does not really handle pages with more than one top-level [microformats2][] nodes.\n\n## Installation\n\n    npm install crawl-mf2\n\n## Example\n\nStart a crawl and log canonical h-entry URLs found on `https://strugee.net/blog/`:\n\n```js\nvar crawl = require('crawl-mf2');\n\nvar crawler = crawl('https://strugee.net/blog/');\n\ncrawler.on('h-entry', function(url, mf2node) {\n\tconsole.log(url);\n});\n```\n\n## API\n\nThe module exports a single function, `crawlMf2`, which takes a single argument, the base URL to crawl from.\n\nIt returns an [`EventEmitter`](https://nodejs.org/api/events.html#events_class_eventemitter).\n\n## Events\n\n### `'error'`\n\nEmitted when an error occurs. Currently this means either the [microformats2][] parser failed or an HTTP error occurred.\n\nNote: [treated specially](https://nodejs.org/api/events.html#events_error_events) by Node.js.\n\n### `'urlDisco'`\n\n* `String` The URL being discovered\n\nEmitted when a new URL is discovered, including the initial base URL.\n\n### `'mf2Parse'`\n\n* `String` The URL being parsed\n* `Object` The parsed [microformats2][] node, returned by [`microformat-node`'s `.get()`](https://www.npmjs.com/package/microformat-node#get)\n\nEmitted when a URL is parsed for [microformats2][] markup.\n\n### `'h-feed'`\n\n* `String` The URL containing the `h-feed`\n* `Object` The parsed [microformats2][] node, returned by [`microformat-node`'s `.get()`](https://www.npmjs.com/package/microformat-node#get)\n\nEmitted when an `h-feed` page is discovered.\n\n### `'h-entry'`\n\n* `String` The URL containing the `h-entry`\n* `Object` The parsed [microformats2][] node, returned by [`microformat-node`'s `.get()`](https://www.npmjs.com/package/microformat-node#get)\n\nEmitted when an `h-entry` page is discovered.\n\n## License\n\nLGPL 3.0+\n\n## Author\n\nAJ Jordan \u003calex@strugee.net\u003e\n\n [microformats2]: http://microformats.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrugee%2Fnode-crawl-mf2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrugee%2Fnode-crawl-mf2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrugee%2Fnode-crawl-mf2/lists"}