Go-txt: Generate and Parse Text Easily in Golang with Images

Go-txt

Quickly copy file from one place to another. You can customize the copying process, for example: replace words

Installation

npm install go-txt --save

Usage

var go = require('go-txt');

go('/tmp/file1.txt', '/tmp2/file2.txt');//this is just copy


//you can customize the copying process
go('/tmp/file1.txt', '/tmp2/file2.txt', function(content){
    return content.replace('ABC', 'PLA');
});

//binary file will be copied directly no matter whether you provide a process function
go('/tmp/logo.png', '/tmp2/logo2.png');

Download Details:

Author: leftstick
Source Code: https://github.com/leftstick/go-txt 
License: MIT License

#go #golang 

Go-txt: Generate and Parse Text Easily in Golang with Images
1.30 GEEK