Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@everymundo/generate-microservice-name
Advanced tools
It generates the microservice name by reading the data from the projects package.json
It generates the microservice name by reading the data from the projects package.json
npm install @everymundo/generate-microservice-name
The function getMicroserviceName
will use your apps package.json file in order to
either generate a valid microservice name under the Everymundo Naming Convention or retrieve
the name contained in the config.customMicroserviceName
package.json
"name": "my-app",
"version": "1.2.3",
your-app.js
const { getMicroserviceName } = require('@everymundo/generate-microservice-name');
const myAppName = getMicroserviceName();
console.log(myAppName); // this will print my-app-v1
In a different scenario, with a namespace for example
package.json
"name": "@my-company/my-app-name",
"version": "2.3.0",
your-app.js
const { getMicroserviceName } = require('@everymundo/generate-microservice-name');
const myAppName = getMicroserviceName();
console.log(myAppName); // this will print my-app-name-v2
If, for some special reason, you need a different app name (not common), you can use this mechanism
package.json
"name": "@my-company/my-app-name",
"version": "2.3.0",
"config": {
"customMicroserviceName": "some-other-name-v2",
}
your-app.js
const { getMicroserviceName } = require('@everymundo/generate-microservice-name');
const myAppName = getMicroserviceName();
console.log(myAppName); // this will print my-app-name-v2
FAQs
It generates the microservice name by reading the data from the projects package.json
We found that @everymundo/generate-microservice-name demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 26 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.