# Install mockjs with npm

生成随机数据 & 拦截 Ajax 请求. Version 1.1.0 via npm; verified 2019-10-25.

## Install

```sh
sudo av install npm:mockjs
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g mockjs
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:mockjs
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/mockjs>
- **Version:** 1.1.0
- **Source summary:** 生成随机数据 & 拦截 Ajax 请求
- **Homepage:** <http://mockjs.com/>
- **Repository:** <https://github.com/nuysoft/Mock>
- **Upstream docs:** <http://mockjs.com/>
- **Source archive:** <https://registry.npmjs.org/mockjs/-/mockjs-1.1.0.tgz>
- **Issue tracker:** <https://github.com/nuysoft/Mock/issues>
- **Published:** 2019-10-25T02:24:20.627Z
- **Last updated:** 2019-10-25T02:24:20.627Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- random (cli)

## Dependencies

- commander

## Build dependencies

- gulp
- gulp-connect
- gulp-coveralls
- gulp-istanbul
- gulp-jshint
- gulp-mocha
- gulp-mocha-phantomjs
- jshint
- jshint-stylish
- webpack

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 1.1.0
- Package-manager updated: 2019-10-25
- Local data: ok
- Upstream repository: https://github.com/nuysoft/Mock
- warning: The package-manager record has not been updated in over a year.
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for mockjs. Package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 1.1.0
- **Version Count:** 10
- **Maintainers:** alvarto, nuysoft
- **Author:** nuysoft@gmail.com
- **Publisher:** alvarto
- **Integrity:** sha512-eQsKcWzIaZzEZ07NuEyO4Nw65g0hdWAyurVol1IPl1gahRwY+svqzfgfey8U8dahLwG44d6/RwEzuK52rSa/JQ==
- **Shasum:** e6a0c378e91906dbaff20911cc0273b3c7d75b06
- **Unpacked Size:** 1,887,322
- **File Count:** 0
- **Created At:** 2013-09-23T11:50:43.894Z
- **Latest Published At:** 2019-10-25T02:24:20.627Z
- **Modified At:** 2023-08-20T09:46:41.436Z


## Related links

- [Text processing packages](https://pkg.so/text-processing-tools/) - Matched curated package taxonomy and local package facts.
- [http-request-mock](https://pkg.so/npm/http-request-mock/) - Local package facts share a topical domain. Shared terms: ajax, cli, commander, developer, developer-tools.
- [wiremock-rest-client](https://pkg.so/npm/wiremock-rest-client/) - Local package facts share a topical domain. Shared terms: cli, commander, developer, developer-tools, mock.
- [msw-auto-mock](https://pkg.so/npm/msw-auto-mock/) - Local package facts share a topical domain. Shared terms: cli, data, developer, developer-tools, mock.

## Sources

- pkg.so package database
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
