# luckio

> A little library for lucky chance picking

Latest version **1.0.1** (published 2016-01-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install luckio
pnpm add luckio
yarn add luckio
bun add luckio
```

## 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 | 2016-01-07 |
| First published | 2016-01-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Dimitar Valchanov |
| Maintainers | dvalchanov |
| Keywords | javascript |

## Links

- npm: https://www.npmjs.com/package/luckio
- Repository: https://github.com/dvalchanov/luckio
- Homepage: https://github.com/dvalchanov/luckio#readme
- Issues: https://github.com/dvalchanov/luckio/issues
- npm.io page: https://npm.io/package/luckio

## Recent versions

- 1.0.1 (latest) — 2016-01-07
- 1.0.0 — 2016-01-07

## README

[![NPM version](https://badge.fury.io/js/luckio.svg)](https://badge.fury.io/js/luckio.svg)

# Luckio

Get lucky in a certain percentage of your tries.

## Example

If you are lucky it returns `true`, if not `false`.
On the first call you set the lucky chance, on each consequent call
it checks if the current pick is a lucky one.

```js
var luckio = require("luckio");

// 1% lucky chance & memoizing the first call
var isLucky = luckio(1);
isLucky();

// 50% lucky chance & no memoization
luckio(50)();
```

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