Skip to content
/ tail.cr Public

Tailing library for Crystal - get and/or follow the end of a file/IO

License

Notifications You must be signed in to change notification settings

j8r/tail.cr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tail.cr

Build Status ISC

Tailing library for Crystal - get and/or follow the end of a file/IO

Inotify.cr library is used to watch files.

Installation

Add the dependency to your shard.yml:

dependencies:
  exec:
    github: j8r/tail.cr

Documentation

https://j8r.github.io/tail.cr

Examples

require "tail"

Tail::File.open "file", &.follow do |str|
  print str
end

Tail::File.open "file", &.last_lines

License

Copyright (c) 2018-2020 Julien Reichardt - ISC License

About

Tailing library for Crystal - get and/or follow the end of a file/IO

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published