Skip to content

mohae/peu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Peu

GoDoc

un peu: a little

About

Peu makes things smaller, hopefully. Peu can also decompress a given stream if it's compression format is supported. This can either be done by checking the magic number or by using the appropriate method. When the stream ends, the operation ends.

Just provide Peu with an io.Reader and an io.Writer; the rest will be handled for you. For compression, either call Compress and specify the compression format or call the correct compression function. For decompression, just call Decompress; it will figure out the compression format used, if it is a supported one. If the compression format is already known, the format specific Decompress funcs can be called directly too.

Peu is not designed to work with archives. For that, there's carchivum

Supported compression algorithms

  • lz4
  • gzip
  • bzip2 (decompression only)

CLI

Peu is also a cli tool and can be found in https://github.com/mohae/peu/tree/master/cmd/peu

License

Copyright 2015-2016 by Joel Scoble.

This is provided under the Apache 2 License. For more details, please check the included LICENSE file.

About

little: a simple program that compresses and decompresses files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages