Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@ng-apimock/core
Advanced tools
ng-apimock is a modular Node.js framework that provides the ability to use scenario based api mocking.
You can use it for:
yarn add @ng-apimock/core --dev
This is a minimal setup example of how you can manually use @ng-apimock/core
const apimock = require('@ng-apimock/core');
const express = require('express');
const app = express();
app.set('port', 9999);
apimock.processor.process({
src: 'mocks'
});
app.use(apimock.middleware);
app.listen(app.get('port'), () => {
console.log('@ng-apimock/core running on port', app.get('port'));
});
To start up the script just type:
node serve.js
This is a minimal setup example in TypeScript of how you can manually use @ng-apimock/core
import * as apimock from '@ng-apimock/core';
import express, { Application } from 'express';
const app: Application = express();
app.set('port', 9999);
apimock.processor.process({
src: 'mocks'
});
app.use(apimock.middleware);
app.listen(app.get('port'), () => {
console.log('@ng-apimock/core running on port', app.get('port'));
});
There are a few endpoints available when you startup @ng-apimock/core
:
/ngapimock/info
- responsible for providing information of the running instance/ngapimock/health
- responsible for providing status information/ngapimock/health/readiness
- readiness probe/ngapimock/health/liveness
- liveness probeWe have a few channels for contact:
@ng-apimock is MIT licensed.
FAQs
ng-apimock core module
The npm package @ng-apimock/core receives a total of 32,295 weekly downloads. As such, @ng-apimock/core popularity was classified as popular.
We found that @ng-apimock/core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.