Add npm packaging support to js/node platform