Skip to content

About

FizzBuzz powered by Jev, TypeSafe AI's System One model.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

fizzbuzz-jev

NPM Version GitHub Actions Workflow Status GitHub License

FizzBuzz powered by Jev, TypeSafe AI's System One model.

Installation

$ npm install fizzbuzz-jev

Usage

Set the TYPESAFE_API_KEY environment variable, or pass apiKey as the second argument.

import { fizzbuzz } from "fizzbuzz-jev";

for (let i = 1; i <= 15; i++) {
  const result = await fizzbuzz(i); // Key from TYPESAFE_API_KEY environment variable
  // or
  // const result = await fizzbuzz(i, { apiKey: "YOUR_API_KEY" });

  console.log(result);
}
1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz

fizzbuzz(value, config?)

Parameter Type Description
value number The number to evaluate.
config TypeSafeClientConfig? Options passed to TypeSafeClient (e.g. apiKey).

Returns Promise<"Fizz" | "Buzz" | "FizzBuzz" | number>.

License

MIT

About

FizzBuzz powered by Jev, TypeSafe AI's System One model.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages