API for packagejs