Sha256: c68716f4efae9479acd559e030c2fe23b6ab3afa756207e13616a8df75ef0866
Contents?: true
Size: 377 Bytes
Versions: 1
Compression:
Stored size: 377 Bytes
Contents
'use strict'; module.exports = string => string.replace(/^[\r\n]+/, '').replace(/[\r\n]+$/, ''); module.exports.start = string => string.replace(/^[\r\n]+/, ''); module.exports.end = string => { let end = string.length; while (end > 0 && (string[end - 1] === '\r' || string[end - 1] === '\n')) { end--; } return end < string.length ? string.slice(0, end) : string; };
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
trusty-cms-6.3.1 | node_modules/trim-newlines/index.js |