Libraries so established or supported shall be free to the inhabitants. The board may extend the privileges and facilities of the library to persons residing outside the county or city upon such terms as it may deem proper.