Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
@ogre-tools/injectable-extension-for-auto-registration
Advanced tools
Readme
Auto register injectables from default exports of files that match a require.context.
$ npm install @ogre-tools/injectable
$ npm install @ogre-tools/injectable-extension-for-auto-registration
...
const di = createContainer();
autoRegister({
di,
requireContexts: [
require.context("./some-directory", true, /\.injectable\.(ts|tsx)$/),
require.context("./some-other-directory", true, /\.injectable\.(ts|tsx)$/),
],
});
Check unit tests for documentation.
FAQs
Auto-registration of injectables for Injectable in Ogre Tools
The npm package @ogre-tools/injectable-extension-for-auto-registration receives a total of 643 weekly downloads. As such, @ogre-tools/injectable-extension-for-auto-registration popularity was classified as not popular.
We found that @ogre-tools/injectable-extension-for-auto-registration 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
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.