Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinvanrijn authored May 25, 2024
1 parent 050a7f0 commit 98ed15d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,15 @@ function writeReadme() {
else if(d[k].source === 'https://github.com/joyent/node-jsprim') { // jsprim
d[k].source = 'https://github.com/TritonDataCenter/node-jsprim'
}
else if(d[k].source === 'https://github.com/substack/minimist') { // minimist
d[k].source = 'https://github.com/minimistjs/minimist'
}
else if(d[k].source === 'https://github.com/npm/minipass-json-stream') { // minipass-json-stream
d[k].source = 'https://www.npmjs.com/package/minipass-json-stream?activeTab=code'
}
else if(d[k].source === 'https://github.com/substack/node-mkdirp') { // mkdirp
d[k].source = 'https://github.com/isaacs/node-mkdirp'
}
else if(d[k].source === 'https://github.com/mikeal/oauth-sign') { // oauth-sign
d[k].source = 'https://github.com/request/oauth-sign'
}
Expand All @@ -266,6 +272,9 @@ function writeReadme() {
else if(d[k].source === 'https://github.com/wildlyinaccurate/relative-date') { // tiny-relative-date
d[k].source = 'https://github.com/wildlyinaccurate/tiny-relative-date'
}
else if(d[k].source === 'https://github.com/substack/typedarray') { // typedarray
d[k].source = 'https://github.com/es-shims/typedarray'
}
else if(d[k].source === 'https://github.com/isaacs/node-which') { // which
d[k].source = 'https://github.com/npm/node-which'
}
Expand Down Expand Up @@ -309,7 +318,7 @@ function writeReadme() {
}

// Readability & consistency
d[k].description = d[k].description.replace(/\s+/g,' ').replace(/\!\[[ -~]*?\]\([ -~]+?\)/g,'').replace(/\[([ -~]*?)\]\([ -~]+?\)/g,'$1').trim().replace(/[Nn]ode\.js|[Nn]ode(?!s)/g,'Node').replace(/javascript/ig,'JavaScript').replace(/([^!.?]$)/,'$1.')
d[k].description = d[k].description.replace(/\s+/g,' ').replace(/\!\[[ -~]*?\]\([ -~]+?\)/g,'').replace(/\[([ -~]*?)\]\([ -~]+?\)/g,'$1').trim().replace(/[Nn]ode\.js|[Nn]ode(?!s)/g,'Node').replace(/javascript/ig,'JavaScript').replace(/htmlparser2/ig,'htmlparser2').replace(/([^!.?]$)/,'$1.')
if(d[k].description !== '') {
d[k].description = d[k].description[0].toUpperCase() + d[k].description.slice(1)
d[k].description = d[k].description.replace(/^Npm/,'npm')
Expand Down

0 comments on commit 98ed15d

Please sign in to comment.