Skip to content

Commit

Permalink
feat(bindgen): Add npm badge to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Jan 18, 2023
1 parent 9c2a112 commit f41fefb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/itk-wasm-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ function typescriptBindings(outputDir, buildDir, wasmBinaries, options, forNode=
const readmePath = path.join(outputDir, 'README.md')
if (!fs.existsSync(readmePath)) {
let readme = `# ${packageName}\n`
readme += `\n[![npm version](https://badge.fury.io/js/${packageName}.svg)](https://www.npmjs.com/package/${packageName})\n`
if (options.packageDescription) {
readme += `\n${options.packageDescription}\n`
}
Expand Down

0 comments on commit f41fefb

Please sign in to comment.