Use own functions instead relying on the nonexisting npm package.