
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
import-modules-auto
Advanced tools
Fork from https://github.com/sindresorhus/import-modules
Add when import Object-Module, merge Object without key-word.
Import all modules in a directory smart
This module is intentionally simple. Not interested in more features.
$ npm install --save import-modules-auto
.
└── dir
├── foo-bar.js //function
└── baz-faz.js //object {test: 'value'}
const importModules = require('import-modules-auto');
const modules = importModules('dir');
console.log(modules);
//=> {fooBar: [Function], bazFaz: [Function]}
const importModules = require('import-modules-auto');
const modules = importModules('dir',{hasKey: false});
console.log(modules);
//=> {fooBar: [Function], test: 'value'}
Type: string
Default: __dirname
Directory to import modules from. Unless you've modified require.extensions
, that means any .js
, .json
, .node
files, in that order. Does not recurse. Ignores the caller file and files starting with .
or _
.
Type: Object
Type: boolean
Default: true
Convert dash-style names (foo-bar
) to camel-case (fooBar
).
Type: boolean
Default: true
Can set module without key words, merge object.
MIT © webkong
FAQs
Import all modules in a directory smart
The npm package import-modules-auto receives a total of 3 weekly downloads. As such, import-modules-auto popularity was classified as not popular.
We found that import-modules-auto 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.