{"size": 320, "ext": "js", "max_stars_repo_path": "test.js", "max_stars_repo_name": "Richienb/regex-parse", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "test.js", "max_issues_repo_name": "Richienb/regex-parse", "max_issues_repo_issues_event_min_datetime": "2021-02-24T08:37:14.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-14T05:15:47.000Z", "max_forks_repo_path": "test.js", "max_forks_repo_name": "Richienb/regex-parse", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 8, "max_forks_count": null, "avg_line_length": 26.6666666667, "max_line_length": 61, "alphanum_fraction": 0.584375}
const test = require("ava")
const regexParse = require("regex-parse");

test("regexParse", (t) => {
	t.deepEqual(regexParse(/a/g), { main: "a", options: "g" })
	t.deepEqual(regexParse("/a/g"), { main: "a", options: "g" })
})

test("regexParse.from", (t) => {
	t.is(regexParse.from({ main: "a", options: "g" }), /a/g)
})
