Ionic Library

Is it possible to to create ionic custom library like angular library introduced from Angular 6?