
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@larsthorup/local
Advanced tools
Simplify requiring local modules
The purpose of this module is to make it easy to keep self-contained Node modules in the same repo as the rest of your app during initial development, in such a way that you can easily convert the module to be a real external module eventually.
npm install @larsthorup/local --save
var local = require('@larsthorup/local');
var config = local('config');
You can optionally declare local modules in dependency order in package.json. If so, local() will verify requests against the declaration, unless NODE_ENV is production:
{
"config": {
"@larsthorup/local": {
"modules": [
"core",
"lib"
]
}
}
}
var util = local('util'); // Note: will throw an error
var core = local('core'); // Note: will succeed if in some source file in lib
var lib = local('lib'); // Note: will throw an error if in some source file in core
FAQs
Simplify requiring local modules
The npm package @larsthorup/local receives a total of 17 weekly downloads. As such, @larsthorup/local popularity was classified as not popular.
We found that @larsthorup/local 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.