Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Gets name of monorepo project :information_desk_person:
npm install corename
/**
* Extracts project name in monorepo
* by examining name of package that matches "@"
*
* @param {Array} [pkgJson=[]]
* @returns {string} name
*/
const projectName = getCoreName(pkgJson);
import getCoreName from "corename";
const pkg0 = {
name: "@folo/withcontext",
dependencies: {}
};
const pkg1 = {
name: "@folo/values",
dependencies: {
"@folo/withcontext": "^0.1.5"
}
};
const projectName = getCoreName([pkg0, pkg1]);
expect(projectName).to.be.equal("@folo");
packageSorter - Sorting packages for monorepos production.
builderz - Building your project with zero config.
get-info - Utility functions for projects production
npm test
This project is licensed under the GPL-3.0 License
FAQs
> Extracts the name of monorepo project
The npm package corename receives a total of 7 weekly downloads. As such, corename popularity was classified as not popular.
We found that corename 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.