Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

beeper

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

beeper - npm Package Compare versions

Comparing version 2.1.0 to 3.0.0

22

index.d.ts

@@ -10,19 +10,15 @@ /**

```
import beeper = require('beeper');
import beeper from 'beeper';
(async => {
await beeper();
// beep one time
await beeper();
// beep one time
await beeper(3);
// beep three times
await beeper(3);
// beep three times
await beeper('****-*-*');
// beep, beep, beep, beep, pause, beep, pause, beep
})();
await beeper('****-*-*');
// beep, beep, beep, beep, pause, beep, pause, beep
```
*/
declare function beeper(count?: number): Promise<void>;
declare function beeper(melody: string): Promise<void>;
export = beeper;
export default function beeper(count?: number): Promise<void>;
export default function beeper(melody: string): Promise<void>; // eslint-disable-line no-redeclare

@@ -1,3 +0,2 @@

'use strict';
const delay = require('yoctodelay');
import delay from 'yoctodelay';

@@ -24,3 +23,3 @@ const BEEP_DELAY = 500;

module.exports = async countOrMelody => {
export default async function beeper(countOrMelody) {
if (

@@ -43,3 +42,3 @@ !process.stdout.isTTY ||

for (let i = 0; i < countOrMelody; i++) {
for (let index = 0; index < countOrMelody; index++) {
await delay(BEEP_DELAY); // eslint-disable-line no-await-in-loop

@@ -56,2 +55,2 @@

}
};
}
{
"name": "beeper",
"version": "2.1.0",
"version": "3.0.0",
"description": "Make your terminal beep",
"license": "MIT",
"repository": "sindresorhus/beeper",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {

@@ -12,4 +13,6 @@ "name": "Sindre Sorhus",

},
"type": "module",
"exports": "./index.js",
"engines": {
"node": ">=8"
"node": ">=12"
},

@@ -28,3 +31,2 @@ "scripts": {

"terminal",
"term",
"cli",

@@ -38,10 +40,13 @@ "console",

"dependencies": {
"yoctodelay": "^1.1.0"
"yoctodelay": "^1.2.0"
},
"devDependencies": {
"ava": "^1.4.1",
"ava": "^3.15.0",
"hooker": "^0.2.3",
"tsd": "^0.7.2",
"xo": "^0.24.0"
"tsd": "^0.14.0",
"xo": "^0.39.1"
},
"ava": {
"serial": true
}
}

@@ -18,14 +18,12 @@ # beeper

```js
const beeper = require('beeper');
import beeper from 'beeper';
(async => {
await beeper();
// beep one time
await beeper();
// beep one time
await beeper(3);
// beep three times
await beeper(3);
// beep three times
await beeper('****-*-*');
// beep, beep, beep, beep, pause, beep, pause, beep
})();
await beeper('****-*-*');
// beep, beep, beep, beep, pause, beep, pause, beep
```

@@ -32,0 +30,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc