Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
@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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.