https://github.com/acathur/mac
Get the MAC addresses of the current machine in Deno.
https://github.com/acathur/mac
address deno ifconfig mac
Last synced: 4 months ago
JSON representation
Get the MAC addresses of the current machine in Deno.
- Host: GitHub
- URL: https://github.com/acathur/mac
- Owner: acathur
- Created: 2020-05-19T07:08:28.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-13T05:56:09.000Z (about 6 years ago)
- Last Synced: 2026-01-25T11:26:28.889Z (5 months ago)
- Topics: address, deno, ifconfig, mac
- Language: TypeScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mac
Get the MAC addresses of the current machine, inspired by fengmk2's [address](https://github.com/node-modules/address) and adapted to Typescript.
**Requires the `--allow-run` flag.**
## Usage
```ts
import { getMac } from 'https://cdn.depjs.com/mac/mod.ts'
await getMac()
// --> 78:ca:39:b0:e6:7d
```
## License
[MIT](https://github.com/Acathur/mac/blob/master/LICENSE)
Copyright (c) 2020, Acathur