Skip to content

Commit

Permalink
Merge pull request #64 from Lehoczky/master
Browse files Browse the repository at this point in the history
show bun conversion on demo site
  • Loading branch information
nebrelbug authored Jan 5, 2025
2 parents d5ebd85 + 9bcf916 commit cc328c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ <h4>Yarn</h4>
<h4>PNPM</h4>
<textarea readonly autocomplete="off" id="pnpm-text"> </textarea>
</div>
<div class="resultgroup">
<h4>Bun</h4>
<textarea readonly autocomplete="off" id="bun-text"> </textarea>
</div>
</div>
<script>
/* global Sqrl */
Expand All @@ -175,6 +179,7 @@ <h4>PNPM</h4>
var npmText = document.getElementById('npm-text').value
document.getElementById('yarn-text').value = n2y(npmText, 'yarn')
document.getElementById('pnpm-text').value = n2y(npmText, 'pnpm')
document.getElementById('bun-text').value = n2y(npmText, 'bun')
}

function yarnToNpm () {
Expand All @@ -183,6 +188,7 @@ <h4>PNPM</h4>
var npmText = n2y(yarnText, 'npm')
document.getElementById('npm-text').value = npmText
document.getElementById('pnpm-text').value = n2y(npmText, 'pnpm')
document.getElementById('bun-text').value = n2y(npmText, 'bun')
}

npmToYarn()
Expand Down

0 comments on commit cc328c9

Please sign in to comment.