UNPKG

data-provider-temporary

Version:

Library that helps with server-to-client synchronization of data

14 lines (10 loc) 216 B
'use strict'; var fn = module.exports = function (x) { return fn.end(fn.start(x)); }; fn.start = function (x) { return x.replace(/^[\r\n]+/, ''); }; fn.end = function (x) { return x.replace(/[\r\n]+$/, ''); };