{"library":"mocks","type":"library","category":null,"description":"The `mocks` package (npm: `mocks`), version 0.0.15, is an abandoned Node.js library initially created to provide basic mock implementations for the built-in `fs` (file system) and `http` modules for unit testing. Last published in August 2013, this package targets extremely old Node.js versions (specifically `>= 0.6.5`), which corresponds to Node.js releases from 2011-2012. The API provided is a very limited subset of the actual Node.js `fs` and `http` functionalities, having been developed primarily to support the testing needs of `Testacular` (now known as Karma). Given its lack of updates for over a decade, it does not support modern JavaScript features like ESM, contemporary Node.js APIs, or TypeScript type definitions. Developers should consider modern, actively maintained alternatives such as `mock-fs` for file system mocking, `node-mocks-http` or `nock` for HTTP requests, and general-purpose testing frameworks with robust mocking capabilities.","language":"javascript","status":"abandoned","version":"0.0.15","tags":["javascript","mock","stub","dummy","test double","fake","nodejs","js","testing"],"install":[{"cmd":"npm install mocks","imports":["const mocks = require('mocks');","const fs = require('mocks').fs;","const http = require('mocks').http;"]},{"cmd":"yarn add mocks","imports":[]},{"cmd":"pnpm add mocks","imports":[]}],"homepage":null,"github":"https://github.com/vojtajina/node-mocks","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/mocks","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/mocks/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Tue Jul 21","install_tag":null}}