# mostly-shopping-hours

> Call a callback mostly during normal shopping hours

Latest version **1.0.0** (published 2017-11-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install mostly-shopping-hours
pnpm add mostly-shopping-hours
yarn add mostly-shopping-hours
bun add mostly-shopping-hours
```

## 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.0 |
| Published | 2017-11-01 |
| First published | 2017-11-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jamie Smith |
| Maintainers | jamiesmith |
| Keywords | random, likelihood, daytime, weekday, weekend, odds, callback, shopping |

## Links

- npm: https://www.npmjs.com/package/mostly-shopping-hours
- Repository: https://github.com/jamiesmith/mostly-shopping-hours
- Homepage: https://github.com/jamiesmith/mostly-shopping-hours#readme
- Issues: https://github.com/jamiesmith/mostly-shopping-hours/issues
- npm.io page: https://npm.io/package/mostly-shopping-hours

## Dependencies (1)

- [is-it-weekend](https://npm.io/package/is-it-weekend.md) ^1.0.0

## Recent versions

- 1.0.0 (latest) — 2017-11-01

## README

# mostly-shopping-hours

Call a callback only sometimes with a certian likelihood. The likelihood
is higer during normal shopping hours, and really high on the weekend.

This is useful if you want to simulate load on a shopping site for instance.

[![Build status](https://travis-ci.org/watson/mostly-shopping-hours.svg?branch=master)](https://travis-ci.org/jamiesmith/mostly-shopping-hours)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)

based on https://github.com/watson/mostly-working-hours

## Installation

```
npm install mostly-shopping-hours --save
```

## Usage

```js
var maybe = require('mostly-shopping-hours')

maybe(function () {
  console.log('It\'s time to do some work!')
})
```

## API

### `maybe(callback)`

Will call the `callback` only based on certain odds.

The odds are higest during normal shopping hours and lowest in the
weekend.

## License

MIT

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