set new api npmapi