Jump to content

JavaScript: Difference between revisions

343 bytes added ,  23 January 2020
No edit summary
Line 128: Line 128:
Packages which run in the browser and may be useful for developing web applications.
Packages which run in the browser and may be useful for developing web applications.
Note that some of these may overlap with the NodeJS page.
Note that some of these may overlap with the NodeJS page.
===lerp, clamp===
<syntaxhighlight lang="bash">
npm i lerp clamp
</syntaxhighlight>
<syntaxhighlight lang="javascript">
Math.lerp = require("lerp");
Math.clamp = require("clamp");
</syntaxhighlight>
===pako===
===pako===
[https://github.com/nodeca/pako pako github]<br>
[https://github.com/nodeca/pako pako github]<br>
Line 133: Line 145:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
npm install pako
npm install pako
</syntaxhighlight>
===url-join===
Basically <code>path.join</code> for the browser.<br>
<syntaxhighlight lang="bash">
npm install url-join
</syntaxhighlight>
</syntaxhighlight>