@jcirizar/water-jug-solver
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

Water Jug Solver

Package to solve water jug problem and cli to execute it.

Install

npm i @jcirizar/water-jug-solver

Usage

CLI with node installed

Note: NPX will ask for confirmation to install the package, hit Enter or 'y'

npx @jcirizar/water-jug-solver 3 5 4

CLI with docker

Note: NPX will ask for confirmation to install the package, hit Enter or 'y'

docker run -it --rm node:alpine npx @jcirizar/water-jug-solver 3 5 4

In your code

import { WaterJugSolver } from '@jcirizar/water-jug-solver';

const solver = new WaterJugSolver(5, 3, 4);
console.log(solver.solve());

Package Sidebar

Install

npm i @jcirizar/water-jug-solver

Weekly Downloads

3

Version

1.1.4

License

ISC

Unpacked Size

60.8 kB

Total Files

44

Last publish

Collaborators

  • jcirizar