{"id":20073545,"url":"https://github.com/ragingwind/data-uri-regex","last_synced_at":"2025-05-05T21:30:54.979Z","repository":{"id":139545799,"uuid":"48080779","full_name":"ragingwind/data-uri-regex","owner":"ragingwind","description":"Regexp for data-uri","archived":false,"fork":false,"pushed_at":"2020-08-16T11:08:10.000Z","size":7,"stargazers_count":2,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-20T14:18:53.678Z","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/ragingwind.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-16T01:59:43.000Z","updated_at":"2020-08-16T11:08:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"ee6f575d-fac2-4881-863b-4e96f3775a53","html_url":"https://github.com/ragingwind/data-uri-regex","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/ragingwind%2Fdata-uri-regex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragingwind%2Fdata-uri-regex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragingwind%2Fdata-uri-regex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragingwind%2Fdata-uri-regex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ragingwind","download_url":"https://codeload.github.com/ragingwind/data-uri-regex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252579993,"owners_count":21771248,"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-13T14:46:43.522Z","updated_at":"2025-05-05T21:30:54.743Z","avatar_url":"https://github.com/ragingwind.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# data-uri-regex [![Build Status](https://travis-ci.org/ragingwind/data-uri-regex.svg?branch=master)](https://travis-ci.org/ragingwind/data-uri-regex)\n\n\u003e Regexp for data-uri\n\n\n## Install\n\n```\n$ npm install --save data-uri-regex\n```\n\n\n## Usage\n\n```js\nconst dataUriRegex = require('data-uri-regex');\n\nvar png = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=='\n\npng.match(dataUriRegex());\n//=\u003e true\n\ndataUriRegex().test(png);\n//=\u003e true\n\ndataUriRegex().exec(png)[1];\n//=\u003e 'data:'\n\ndataUriRegex().exec(png)[2];\n//=\u003e 'image/png'\n\ndataUriRegex().exec(png)[3];\n//=\u003e 'base64'\n\ndataUriRegex().exec(png)[4];\n//=\u003e 'iVB'\n```\n\n\n## API\n\n### dataUriRegex()\n\nIt will return the instance of RegExp() for match data-uri strings.\n\n## License\n\nMIT © [ragingwind](http://ragingwind.me)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fragingwind%2Fdata-uri-regex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fragingwind%2Fdata-uri-regex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fragingwind%2Fdata-uri-regex/lists"}