add ignore
encapsulated the reading of the buffer into its own export so library can be used without providing a local file