1.0.1 ā€¢ Published 2 years ago

@ultirequiem/stable-fn v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

stable-fn

CI codecov deno doc

Custom badge Custom badge Custom badge

Ensure the same input always produces the same output.

Useful for stress testing functions in your unit tests to make sure their behaviors are consistent.

Usage

Deno šŸš€

import { stableFunction } from "https://deno.land/x/stable_fn/mod.ts";
import { randomItem } from "https://deno.land/x/random_item/mod.ts";

stableFunction(() => true); //=> true
stableFunction(() => randomItem(["a", "b", "c"])); //=> false

Node.js šŸ¢

import { stableFunction } from "@ultirequiem/stable-fn";

Browser

Using type module šŸ±

Using a plain script tag šŸ‘‡

You have the same API on all of this platforms.

Documentation

Autogenerated Documentation šŸ˜Ž

Support

Open an Issue, I will check it a soon as possible šŸ‘€

If you want to hurry me up a bit send me a tweet šŸ˜†

Consider supporting me on Patreon if you like my work šŸš€

Don't forget to start the repo ā­

Licence

Licensed under the MIT License.