
Security News
npm Tooling Bug Incorrectly Marks One-Character Packages as Security Holders
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.
@eljs/pluggable
Advanced tools
Make pluggable easily.
$ pnpm add @eljs/pluggable
// or
$ yarn add @eljs/pluggable
// ro
$ npm i @eljs/pluggable -S
// refer to: https://github.com/chnliquan/eljs/blob/master/packages/release/src/runner.ts
import { Pluggable } from '@eljs/pluggable'
export class Runner extends Pluggable {
public constructor(options: Config) {
super(options)
}
public async run() {
// load presets plugins and user config
await this.load()
// apply customize plugins
await this.applyPlugins('')
}
}
new Runner({
cwd: 'path/to/working/directory',
presets: [],
plugins: [],
}).run()
export interface PluggablePluginApi {
// #region Plugin class fields
/**
* Working directory
*/
cwd: typeof Pluggable.prototype.cwd
// #endregion
// #region Plugin methods
/**
* Apply plugins
*/
applyPlugins: typeof Pluggable.prototype.applyPlugins
/**
* Register presets
* @param presets preset declarations
*/
registerPresets: (presets: PluginDeclaration[]) => void
/**
* Register plugins
* @param plugins plugin declarations
*/
registerPlugins: (plugins: PluginDeclaration[]) => void
// #endregion
}
export interface PluginApi {
/**
* Describe plugin
* @param options.key plugin key
* @param options.enable whether plugin enable
*/
describe: (options: { key?: string; enable?: Enable }) => void
/**
* Register hook
* @param key hook key
* @param fn execute function
* @param options options
*/
register: (
key: HookOptions['key'],
fn: HookOptions['fn'],
options: Omit<HookOptions, 'plugin' | 'key' | 'fn'>,
) => void
/**
* Register method
* @param name method name
* @param fn execute function
*/
registerMethod: (name: string, fn?: MaybePromiseFunction<any>) => void
/**
* Skip plugin
* @param keys plugin key
*/
skipPlugins: (keys: string[]) => void
}
FAQs
Make pluggable easily.
The npm package @eljs/pluggable receives a total of 49 weekly downloads. As such, @eljs/pluggable popularity was classified as not popular.
We found that @eljs/pluggable 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
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Research
/Security News
Newer packages in this compromise use native extensions and .pth loaders to execute JavaScript stealers in developer environments.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.