Factoids:
- "npm" is not an abbreviation for "Node Package Manager". It is a recursive bacronymic abbreviation for "npm is not an acronym". (source: https://web.archive.org/web/20150322145730/https://docs.npmjs.com/misc/faq)
NPM@5 has a much improved cache for working offline. Try the following arguments:
Argument | Description |
---|---|
--offline | Don't make network requests, just use what's in the cache already. |
--prefer-offline | Only make network requests if the cache doesn't have the required package. |
DevDocs is a great resource for offline documentation. It's a HTML5 web app that lets you download HTML/CSS/JS/Node documentation and more, which is the perfect fit for the low throughput of CampJS.
Once installed, use the built-in search provider in your browser to type devdocs[tab] and search your docs!
Offline, and need to run something? MacOS and Linux both come with Python, which will start a web server with the command python -m SimpleHTTPServer 8000
For a Node solution, you can npm install express
and run the following:
const app = express()
app.use('/', express.static('/my/root/folder/'))
app.listen(8000)```