{"id":15503071,"url":"https://github.com/johno/is-mac","last_synced_at":"2026-05-18T11:08:10.730Z","repository":{"id":23810779,"uuid":"27187155","full_name":"johno/is-mac","owner":"johno","description":"Check whether a string is a valid MAC address.","archived":false,"fork":false,"pushed_at":"2018-10-15T14:52:39.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-26T23:17:01.298Z","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/johno.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":"2014-11-26T17:05:50.000Z","updated_at":"2019-02-06T15:56:38.000Z","dependencies_parsed_at":"2022-07-23T11:02:25.265Z","dependency_job_id":null,"html_url":"https://github.com/johno/is-mac","commit_stats":null,"previous_names":["johnotander/is-mac"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/johno/is-mac","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fis-mac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fis-mac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fis-mac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fis-mac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johno","download_url":"https://codeload.github.com/johno/is-mac/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fis-mac/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264545257,"owners_count":23625408,"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-02T09:12:04.247Z","updated_at":"2026-05-18T11:08:05.697Z","avatar_url":"https://github.com/johno.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-mac [![Build Status](https://travis-ci.org/johnotander/is-mac.svg?branch=master)](https://travis-ci.org/johnotander/is-mac) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)\n\nCheck whether a string is a valid MAC address.\nThis uses `test` rather than `match` to ensure it's as fast as possible: \u003chttp://jsperf.com/regexp-test-vs-match-m5\u003e.\n\n## Installation\n\n```\nnpm i --save is-mac\n```\n\n## Usage\n\n```javascript\nvar isMac = require('is-mac')\n\nisMac('invalid-mac') // =\u003e false\nisMac('aa-bb-cc-dd-ee-ff') // =\u003e true\nisMac({}) // =\u003e throws TypeError\n```\n\n## License\n\nMIT\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\nCrafted with \u003c3 by [John Otander](http://johnotander.com) ([@4lpine](https://twitter.com/4lpine)).\n\n***\n\n\u003e This package was initially generated with [yeoman](http://yeoman.io) and the [p generator](https://github.com/johnotander/generator-p.git). \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohno%2Fis-mac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohno%2Fis-mac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohno%2Fis-mac/lists"}