Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.compact()
.map((line) => {
const pair = line.toString().split('|')
return {
name: pair[0],
email: pair[1]
}
})
.uniqBy('email')
.sortBy('name')
.map((val) => `${val.name} <${val.email}>`)
.value()
json.contributors = gitContribs
file.contents = Buffer.from(JSON.stringify(json, null, 2))
cb(null, file)
})
}