# nodejs-web-app1

> NodejsWebApp1

Latest version **0.0.0** (published 2017-02-26) · 0 weekly downloads

## Install

```sh
npm install nodejs-web-app1
pnpm add nodejs-web-app1
yarn add nodejs-web-app1
bun add nodejs-web-app1
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0 |
| Published | 2017-02-26 |
| First published | 2017-02-26 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Administrator |
| Maintainers | liuzewei1990 |

## Links

- npm: https://www.npmjs.com/package/nodejs-web-app1
- npm.io page: https://npm.io/package/nodejs-web-app1

## Recent versions

- 0.0.0 (latest) — 2017-02-26

## README

##Global全局对象

####setTimeout

####setInterval

####setImmediate

####console

####Process进程管理

- nextTick
    - 下一队列（当前队列的底部）

- 使用PID关闭计算机指定的进程
```
process.kill(PID)
```

- 获取node程序的PID号
```
process.pid
```

- 当前工作目录
```
process.cwd()
```

- 退出Node进程
```
process.exit()
```

##模块系统

####module.exports 与 exports的区别
- 在exports增加属性直接改变module.exports的指向。
- 导出多个模块用exports方式
- 导出单个用module.exports方式

    ```
    module.exports = 模块 或 模块组
    exports.模块1 = 模块1
    exports.模块2 = 模块2
    ```

####require方法
- require方法具有文件缓存机制，缓存的文件在该对象下的cache中。
- 因缓存机制，所以当重复引入多次，只会执行一次。
- 删除require引入的文件缓存的方法就是删除该对象下的cache属性。
    

####npm全局安装 与 本地安装的区别

- 全局安装（只在命令下使用）
    - nrm工具（切换镜像源地址）
- 本地安装
    - 依赖（开发上线都需要）

    ```
        npm install jquery --save
    ```
    - 开发依赖（只在开发使用）

    ```
    npm install jquery --save-dve
    ```

####nrm的使用
    ```
    下载：npm install nrm -g
    查看所有源：nrm ls
    查看源速度：nrm test
    添加源：nrm add 源名字 源地址
    删除源：nrm del 源名字
    使用源：nrm use 源名字

    ```

---
_Source: https://npm.io/package/nodejs-web-app1 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
