
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
mockman-js
Advanced tools
mockman-js · Report Bug · Request Feature
🚀 MockmanJS gives plug and play React Component to test your fake mock-backend APIs.
⚡ Mocking Libraries such as MirageJS, JSON-Server etc. provide fake RESTful APIs. But sadly, you cannot test them without actually using them in your project.
🌌 Mockman is POSTMAN; but for Mock APIs.
🤩 Import Mockman in your project and get started!
You build Mock APIs, Mockman will handle the REST!
Install Mockman by running:
npm i mockman-js
yarn add mockman-js
/*
we encourage to have a dedicated route called `/mock-api` on your frontend app where you can import Mockman and test them
*/
import React from "react";
import Mockman from "mockman-js";
function MockAPI() {
return (
<div className="MockAPI">
<Mockman />
</div>
);
}
export default MockAPI;
In your index.html
, add the following:
<link
rel="stylesheet"
href="https://unpkg.com/mockman-js@latest/dist/style.css"
/>
You can always override the default styles by defining your custom css.
Mockman currently supports colorScheme
prop to define color scheme to Mockman component.
The colorScheme
prop currently accepts two values - "standard" (default) and "dark".
<Mockman colorScheme="dark" />
mockBEE is truly Open Source. Any sort of contribution to this project are highly appreciated. Create a branch, add commits, and open a pull request.
Please read CONTRIBUTING
for details on our CODE OF CONDUCT
, and the process for submitting pull requests to mockBEE.
This project is licensed under the MIT License - see the LICENSE
file for details.
FAQs
Unknown package
The npm package mockman-js receives a total of 75 weekly downloads. As such, mockman-js popularity was classified as not popular.
We found that mockman-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.