You also can use bower http://bower.io/
Maybe, it is more aligned with your use case. Think it as a "npm for the browser" Angel "Java" Lopez @ajlopez On Sun, Jan 31, 2016 at 10:06 AM, Zlatko <[email protected]> wrote: > Of course you can use npm to download general JavaScript packages, and you > can use them in the browser, if nothing, then manually. > > The simplest use case: > > npm install griddle-react --save > > That installs the pacakge in node_modules/griddle-react folder. > > From there you can simply include the script in your HTML: > > <script src="node_modules/griddle-react/build/griddle.js"> > > But as Luiz has said,if you use something like browserify or webpack to > also resolve the dependencies automatically, it gets even simple to use > these things. > > > > > > On Saturday, January 30, 2016 at 8:14:06 AM UTC+1, Quin Lee wrote: >> >> I need to download JavaScript libraries for use in my website. The >> website is *not* being built using Node. However, some of the >> JavaScript packages that I need to install are available through NPM. Can >> NPM be used to download packages for regular HTML and JavaScript websites? >> The NPM website states that it's the package manager for almost >> everything. However, it seems to only provide Node packages. >> >> Below is a link to one of the JavaScript libraries that I am using for my >> site (built w/ React.js). >> http://griddlegriddle.github.io/Griddle/ >> <http://www.google.com/url?q=http%3A%2F%2Fgriddlegriddle.github.io%2FGriddle%2F&sa=D&sntz=1&usg=AFQjCNHMjSpEcHx7Xnj_9NI03oLoQEIENA> >> > -- > Job board: http://jobs.nodejs.org/ > New group rules: > https://gist.github.com/othiym23/9886289#file-moderation-policy-md > Old group rules: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/nodejs/73fe90a3-4ce3-4b2e-ae1f-d9d3fd0a6b65%40googlegroups.com > <https://groups.google.com/d/msgid/nodejs/73fe90a3-4ce3-4b2e-ae1f-d9d3fd0a6b65%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CAMs%2BDq%2BzWkNJbHijDA9AUWUvd%2BK390q1V2Y2dgf3G2oKHuN6XA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
