Skip to content

UltiRequiem/stable-fn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

stable-fn

codecov deno doc

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

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
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.

About

🦾 Ensure the same input always produces the same output

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

Packages

 
 
 

Contributors 2

  •  
  •