MCPcopy Create free account
hub / github.com/christkv/node-git / chomp

Function chomp

lib/git/git.js:26–28  ·  view source on GitHub ↗
(raw_text)

Source from the content-addressed store, hash-verified

24
25// Chomp text removing end carriage returns
26var chomp = function chomp(raw_text) {
27 return raw_text ? raw_text.replace(/(\n|\r)+$/, '') : '';
28}
29
30var read_file = function(path, callback) {
31 fs.stat(path, function(err, stat) {

Callers 1

git.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected