Npm for javascript client side code

I read a document on npm Developer's Guide .
I was wondering if it is possible to write a web client application using javascript / css / html using npm?
If yes, is there any example on github?

For example, my client web application is dependent on requirejs, jquery, underscore and backbone.
Can I use the npmlatest version for automatic download in the vendor directory requirejs, jquery, underscore and backbone?
If not, are there other tools / methods to achieve this?

+5
source share
4 answers

Yeoman Bower - Bower Github jQuery , .

+6

, . , NPM, JavaScript front-end. , . jshint uglifyjs, grunt, , sass-, . CommonJS, package.json.

+1

Pretty Diff. , NPM. JavaScript , JavaScript, . API. API:

  • DOM - -
  • WSH - Windows
  • Node.js - Node.js
0

:

npm - , nodejs, javascript .

You can create your own packages for nodejs and upload them to npm or use to install packages released by others, but these are only packages for nodejs that are server-side and not clients. So no, you cannot use npm for what you need.

Version for really lazy people:

No, because npm is for nodejs, which is the server, and therefore it has nothing to do with client applications.

Hope this answers your question.

-2
source

All Articles