New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

beepwin

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

beepwin

Windows Beep Function

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

BeepWin

The beepwin package is a C++ extension that requires a build environment to be installed on your system. You must be able to build node.js itself to be able to compile and install the beepwin module.

Watch demo on youtube

Install on Windows

For compiling beepwin on windows, the following tools.

  • Visual Studio c++ 2010 (do not use higher versions)
  • Windows 7 64bit SDK
  • Python 2.7 or higher

Open visual studio command prompt. Ensure node.exe is in your path and install node-gyp.

npm install -g node-gyp

Next you will have to build the project manually to test it. Use any tool you use with git and grab the repo.

git clone https://github.com/kingleonide/beepwin.git
cd beepwin
set PYTHON=D:\Programs\Python27\python.exe (setup your python.exe path)
npm install
node-gyp rebuild

or

set PYTHON=D:\Programs\Python27\python.exe (setup your python.exe path)
npm install beepwin

This should rebuild the driver successfully if you have everything set up correctly.

Usage BeepWin

var Beep = require("beepwin");

Beep(); // Default Beep(3000, 100);

Beep(10000, 100); // 10000 = Frequency, 100 = Duration in Milliseconds

for(i = 0; i < 10; i++){
	Beep(1000 * i, 100);
}

Keywords

win

FAQs

Package last updated on 21 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts