
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
Use glob patterns to load an array of requireable files or npm modules - like plugins or middleware, optionally passing a config object to each module.

Use glob patterns to load an array of requireable files or npm modules - like plugins or middleware, optionally passing a config object to each module.
Install with npm:
npm i boson --save-dev
Uses a simple require on each module found and attempts to pass a config
object is one is specified, returning an array of functions or objects
exported from local or named npm modules. Wildcard (glob) patterns may be used.
Example:
boson('index.js', {foo: 'bar'}); // index.js file for boson
//=> [ { [Function] find: [Function], register: [Function] } ]
Params:
patterns {Array|String}: Glob patterns, file paths or named npm modules.config {Object}: Optional config object to pass to each function.options {Object}: Options to pass to resolve-dep.return {Array}Returns an array of resolved filepaths for local or named npm modules. Wildcard (glob) patterns may be used.
Example:
(Returned paths are shortened for example).
boson.find('mocha');
//=> ['~/boson/node_modules/mocha/index.js']
boson.find(['mocha', '*.js']);
//=> [ '~/boson/index.js', '~/boson/node_modules/mocha/index.js' ]
// Optionally pass a config object
boson.find(['mocha', '*.js'], {foo: 'bar'});
//=> [ '~/boson/index.js', '~/boson/node_modules/mocha/index.js' ]
Params:
patterns {Array|String}: Glob patterns, file paths or named npm modules.options {Object}: Options to pass to resolve-dep.return {Array}Uses a simple require on each module found, returning an array of
functions or objects exported from local or named npm modules. Wildcard
(glob) patterns may be used.
Example:
boson('index.js'); // index.js file for boson
//=> [ { [Function] find: [Function], register: [Function] } ]
Params:
patterns {Array|String}: Glob patterns, file paths or named npm modules.options {Object}: Options to pass to resolve-dep.return {Array}Jon Schlinkert
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on June 15, 2014.
FAQs
Use glob patterns to load an array of requireable files or npm modules - like plugins or middleware, optionally passing a config object to each module.
The npm package boson receives a total of 7 weekly downloads. As such, boson popularity was classified as not popular.
We found that boson 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
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.