Wraps two common interpolation functions: lerp (linear interpolation) and smoothstep (Hermite interpolation).
npm install interpolation
Use:
var lerp = require('interpolation').lerp;
var smoothstep = require('interpolation').smoothstep;
var res = lerp(a, b, t);
var res2 = smoothstep(a, b, t);
MIT.