move file operation to nodejs-lib project