{"id":15361576,"url":"https://github.com/popomore/checkurl","last_synced_at":"2025-04-15T08:41:58.565Z","repository":{"id":5573679,"uuid":"6779379","full_name":"popomore/checkurl","owner":"popomore","description":"A tiny url status check tool","archived":false,"fork":false,"pushed_at":"2014-07-18T08:43:29.000Z","size":407,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T18:12:14.737Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/popomore.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-20T14:42:54.000Z","updated_at":"2023-02-02T20:43:15.000Z","dependencies_parsed_at":"2022-09-16T13:12:01.773Z","dependency_job_id":null,"html_url":"https://github.com/popomore/checkurl","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/popomore%2Fcheckurl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/popomore%2Fcheckurl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/popomore%2Fcheckurl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/popomore%2Fcheckurl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/popomore","download_url":"https://codeload.github.com/popomore/checkurl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249038887,"owners_count":21202803,"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-10-01T12:55:40.406Z","updated_at":"2025-04-15T08:41:58.547Z","avatar_url":"https://github.com/popomore.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# checkurl\n\n[![Build Status](https://travis-ci.org/popomore/checkurl.png?branch=master)](https://travis-ci.org/popomore/checkurl) [![Coverage Status](https://coveralls.io/repos/popomore/checkurl/badge.png?branch=master)](https://coveralls.io/r/popomore/checkurl?branch=master) \n\n[![David Status](https://david-dm.org/popomore/checkurl.png)](https://david-dm.org/popomore/checkurl)\n\n\n\nA tiny url status check tool\n\n---\n\n\n## Usage\n\n### Check url\n\n```\n$ checkurl http://www.baidu.com\nHEAD http://www.baidu.com/ -\u003e 200\n```\n\n### Check combo\n\n```\n$ checkurl http://static.alipayobjects.com/static/ar/??alipay.light.base-1.4.js,alipay.security.riskMobileAccount-1.0.js\nHEAD http://static.alipayobjects.com/static/ar/alipay.light.base-1.4.js -\u003e 200\nHEAD http://static.alipayobjects.com/static/ar/alipay.security.riskMobileAccount-1.0.js -\u003e 404\n```\n\n### Check image combo\n\n```\n$ checkurl 'https://i.alipayobjects.com/combo.jpg?d=apps/24\u0026t=10015,10016'\nHEAD https://i.alipayobjects.com/common/combo/apps/24/10015.png -\u003e 200\nHEAD https://i.alipayobjects.com/common/combo/apps/24/10016.png -\u003e 200\n```\n\n### Check file\n\nurls.txt\n\n```\nhttp://static.alipayobjects.com/static/ar/alipay.light.base-1.4.js\nhttp://static.alipayobjects.com/static/ar/alipay.security.riskMobileAccount-1.0.js\n```\n\nCheck url in urls.txt\n\n```\n$ checkurl urls.txt\nHEAD http://static.alipayobjects.com/static/ar/alipay.light.base-1.4.js -\u003e 200\nHEAD http://static.alipayobjects.com/static/ar/alipay.security.riskMobileAccount-1.0.js -\u003e 404\n```\n\n### Require module\n\nYou can require `checkurl`\n\n```\nvar checkurl = require('checkurl');\ncheckurl('url', function(data) {\n  // use data\n});\n```\n\nData structure\n\n```\n[\n  ['url', 200],\n  ['url', 404]\n]\n```\n\nif check single url, data structure is\n\n```\n['url', 200]\n```\n\n### events\n\n1. checked\n\n    this events will emit after every url is checked.\n\n\n    ```\n    checkurl('url', function(data) {\n      // use data\n    }).on('checked', function(data){\n        \n    });\n    ```\n\n2. error\n\n    this events will emit when any url get error.\n\n    ```\n    checkurl('url', function(data) {\n      // use data\n    }).on('error', function(err){\n        \n    });\n    ```\n\n## Install\n\n```\nnpm install checkurl -g\n```\n\n## License\n\nBSD\n\n### Thanks\n\nhttps://github.com/shaoshuai0102/combocheck\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpopomore%2Fcheckurl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpopomore%2Fcheckurl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpopomore%2Fcheckurl/lists"}