Skip to content

slushnys/shpment-provider-rule-engine

Repository files navigation

Shipment calculator

Not all the files have their own tests, but most is covered.

Dependency injection is used thrugohut the code. Rules accept conditions and also a function that will apply effects on the facts mutating them on the go.

Install packages

npm install

Run the tests:

npm test

Launch rules through file

npm run parse src/input.txt

About

Example implementation of a simplified rule engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published