update writing in node-npm