{"id":20285793,"url":"https://github.com/tpkn/ad-size","last_synced_at":"2025-06-27T23:37:22.004Z","repository":{"id":57172982,"uuid":"131192183","full_name":"tpkn/ad-size","owner":"tpkn","description":"Module extracts banner's size from html file","archived":false,"fork":false,"pushed_at":"2018-05-13T14:25:12.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T15:46:29.763Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tpkn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-26T17:56:04.000Z","updated_at":"2018-05-13T14:25:13.000Z","dependencies_parsed_at":"2022-08-24T13:31:03.979Z","dependency_job_id":null,"html_url":"https://github.com/tpkn/ad-size","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/tpkn%2Fad-size","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpkn%2Fad-size/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpkn%2Fad-size/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpkn%2Fad-size/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpkn","download_url":"https://codeload.github.com/tpkn/ad-size/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241780512,"owners_count":20019061,"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-14T14:28:59.187Z","updated_at":"2025-03-04T04:11:07.588Z","avatar_url":"https://github.com/tpkn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# adSize   \r\nModule extracts banner's size from html file  \r\n\r\n\r\nFor now it's focuses on meta tag containing width and height.\r\n\r\n\r\n## Installation\r\n```bash\r\nnpm install ad-size\r\n```\r\n\r\n\r\n\r\n## API\r\n\r\n### adSize(input[, silent])\r\n\r\n\r\n### input\r\nType: _String_   \r\nPath to html file or it's content \r\n\r\n\r\n### silent\r\nType: _Boolean_  \r\nDefault: `true`  \r\nIf `true`, then no errors would be thrown, and if an error occurs, the function returns `null`  \r\n\r\n\r\n\r\n## Usage\r\n\r\n```javascript\r\nconst adSize = require('ad-size');\r\n\r\nlet html = '\u003chtml\u003e\u003chead\u003e\u003cmeta name=\"ad.size\" content=\"HEIGHT=250px,width=970\"\u003e\u003c/head\u003e\u003cbody\u003e\u003c/body\u003e\u003c/html\u003e';\r\nlet size = adSize(html);\r\n//=\u003e '970x250'\r\n\r\n```\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpkn%2Fad-size","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpkn%2Fad-size","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpkn%2Fad-size/lists"}