Gathering detailed insights and metrics for webpack-dev-server-qr-code
Gathering detailed insights and metrics for webpack-dev-server-qr-code
Gathering detailed insights and metrics for webpack-dev-server-qr-code
Gathering detailed insights and metrics for webpack-dev-server-qr-code
npm install webpack-dev-server-qr-code
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
11 Stars
21 Commits
2 Forks
2 Watching
3 Branches
1 Contributors
Updated on 05 Feb 2023
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
34.8%
31
Compared to previous day
Last week
-31.3%
68
Compared to previous week
Last month
28.3%
385
Compared to previous month
Last year
52.6%
5,534
Compared to previous year
2
1
Need to test your site on a device?
Stop typing out IP addresses and jump into the future with QR Codes!
Install it!
1npm install webpack-dev-server-qr-code
Note: You must be using the devServer
options inside of your webpack config for this to work!
In your Webpack config, add this line:
1const WebpackQRCodePlugin = require('webpack-dev-server-qr-code'); 2 3module.exports = { 4 /** This option must be present in your config */ 5 devServer: { 6 /** port MUST be specified */ 7 port: 9000, 8 9 /** Your 'host' value must be '0.0.0.0' for this to work */ 10 host: '0.0.0.0' 11 }, 12 /* ... */ 13 plugins: [ 14 /** your plugins */ 15 new WebpackQRCodePlugin() 16 /** your other plugins */ 17 ] 18}; 19
Boom! You're finished!
The plugin will print a QR code to your terminal when you first run the app, with your local IP
.
Make sure your mobile device is on the same network as your computer, and you should be set!
You can pass in an object to the constructor class like this:
module.exports = {
/** ... */
plugins: [
new WebpackQRCodePlugin({ size: 'small' })
]
}
The above code will generate a smaller QR code on your terminal. Here's the allowed options
key | Type | Required? | Description | Default Value |
---|---|---|---|---|
size | String | No | Changes the size of the QR code printed out. Acceptable values are 'small' or 'large' | 'large' |
Any other options at this time will be ignored. If you put in a value that's not large
or small
for size, the plugin will still run, but still output a large sized QR code.
Do you like:
If you like one or all of those things, start hacking with me on this project:
npm install
src/index.js
and start hackin' away:This is a pretty small and fun little plugin, so contributions are welcome from anyone and everyone, regardless of skill level, gender, race, etc. Everyone is welcome to use and hack away on this as they please :).
If you contribute, I will buy you an alcoholic beverage of your choice, so what are you waiting for? ;)
I loves me some unit testing. Run the tests with npm test
and bingus bongus you is done.
If you break something (no worries friend! Happens to us all :D) CircleCI should catch it on your branch/fork.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/15 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
56 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More