
Product
Introducing Rust Support in Socket
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
babel-plugin-transform-glob-import
Advanced tools
Import multiple files at once with globs
Importing both dir/a.js
and dir/b.js
at once:
import vars from './dir/*.js';
console.log(vars.a, vars.b);
You can also import deeply nested globs. The result is a nested object for each directory:
// import dir/a.js and dir/b/c.js
import vars from './dir/**/*.js';
console.log(vars.a, vars.b.c);
Importing only some files with destructuring also works:
// imports only dir/a.js, and dir/b.js
import {a, b} from './dir/*.js';
MIT
FAQs
Import multiple files at once with globs
We found that babel-plugin-transform-glob-import 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.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.