Skip to content

JoshuaKGoldberg/wifi-share-link

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

240 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

wifi-share-link

Generates shareable WIFI:// link strings for WiFi credentials. ๐Ÿ“ถ

๐Ÿ‘ช All Contributors: 1 ๐Ÿค Code of Conduct: Kept ๐Ÿงช Coverage ๐Ÿ“ License: MIT ๐Ÿ“ฆ npm version ๐Ÿ’ช TypeScript: Strict

Usage

npm i wifi-share-link
import { generateWifiShareLink } from "wifi-share-link";

// "WIFI:T:None;S:My Network;;"
generateWifiShareLink({
	ssid: "My Network",
});

Options

Only ssid is required.

  • encryption (string | undefined): The type of encryption, such as "WEP" or "WPA". Defaults to "nopass" if not provided.
  • hidden (boolean | undefined): Whether the network avoids broadcasting its SSID publicly. This indicates to your device whether to attempt a connection to a hidden network.
  • password (string | undefined): Private password used to connect if there is encryption.
  • ssid (string): User-displayed name of the network.
// "WIFI:T:WPA;S:My Network;P:CorrectHorseBatteryStaple;H:true;;"
generateWifiShareLink({
	encryption: "WPA",
	hidden: true,
	password: "CorrectHorseBatteryStaple",
	ssid: "My Network",
});

Development

See .github/CONTRIBUTING.md, then .github/DEVELOPMENT.md. Thanks! ๐Ÿ’–

Contributors

Josh Goldberg โœจ
Josh Goldberg โœจ

๐Ÿ’ป ๐Ÿ–‹ ๐Ÿ“– ๐Ÿค” ๐Ÿš‡ ๐Ÿšง ๐Ÿ“† ๐Ÿ”ง

๐Ÿ’ This package was templated with create-typescript-app using the Bingo framework.

About

Generates shareable WIFI:// link strings for wifi credentials. ๐Ÿ“ถ

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors