# yes.js

> A JavaScript port of *nix's yes command.

Latest version **1.0.1** (published 2013-11-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install yes.js
pnpm add yes.js
yarn add yes.js
bun add yes.js
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2013-11-17 |
| First published | 2013-11-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Robert Bost |
| Maintainers | bostrt |
| Keywords | yes, yes.js, repeat, no, setInterval |

## Links

- npm: https://www.npmjs.com/package/yes.js
- Repository: git@github.com:bostrt/yes.js
- Homepage: http://bostrt.github.io/yes.js/
- Issues: https://github.com/bostrt/yes.js/issues
- npm.io page: https://npm.io/package/yes.js

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2013-11-17
- 1.0.0 — 2013-11-14

## README

yes.js <a href="https://codeclimate.com/github/bostrt/yes.js"><img src="https://codeclimate.com/github/bostrt/yes.js.png" /></a> [![NPM version](https://badge.fury.io/js/yes.js.png)](http://badge.fury.io/js/yes.js) <img src="http://benschwarz.github.io/bower-badges/badge@2x.png" width="130" heightb="30">
====================================================================================================
_Yes.js_ is basically a wrapper around the `setInterval`
and `clearInterval` JavaScript functions. _Yes.js_ makes it
a little easier to manage repeating interval calls.

Install
------
`bower install yes.js` or `npm install yes.js`

_Node.js users..._`var Yes = require('yes.js');`

API
-----
http://bostrt.github.io/yes.js/

Examples
-------
```javascript
var myYes = new Yes();
var yesID = myYes.yes(function(str) {
    console.log(str);
}, "Oh yes!", 1000);

// ...

yes.kill(yesID);
```

```javascript

function getUserLocation() {
...
}

var myYes = new Yes();

// Same old string
myYes.yes(function(str) {
    console.log(str);
}, "Oh Yes!", 1000);

// You can even pass functions!
myYes.yes(function(func) {
    console.log("User is at " + func());
}, getUserLocation, 5000);

// ...
// Let's kill both of our intervals.
myYes.kill();
```

---
_Source: https://npm.io/package/yes.js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
