Fix string formatting in npm module