fast-knapsack (npm): Lightweight, flexible, and efficient solution for knapsack problems. This is definitely what you are looking for.
Keywords: knapsack|algorithm