packaging into node module