Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
@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.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.