
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
import-adjutor
Advanced tools
Parse ecmascript modules and collect names of export vars, functions, etc.
Parse ecmascript modules and collect names of export vars, functions, etc.
Ex- esm-exports
echo json | import-adjutor
Where json is (JSON.stringified object):
{
command: string;
args: object;
}
Output structure (JSON.stringified):
command: 'insertImport';
args:
declaration: Declaration;
sourceFileContent: string;
manipulationSettings?: Partial<ManipulationSettings> & { noSemicolon?: boolean };
sorted: boolean = false;
type Declaration = {
name: string;
specifier: string;
isDefault?: boolean;
};
interface ManipulationSettings extends SupportedFormatCodeSettingsOnly {
/** Indentation text */
indentationText: IndentationText;
/** New line kind */
newLineKind: NewLineKind;
/** Quote type used for string literals. */
quoteKind: QuoteKind;
/**
* Whether to enable renaming shorthand property assignments, binding elements,
* and import & export specifiers without changing behaviour.
* @remarks Defaults to true.
* This setting is only available when using TypeScript 3.4+.
*/
usePrefixAndSuffixTextForRename: boolean;
/** Whether to use trailing commas when inserting or removing nodes. */
useTrailingCommas: boolean;
}
Output:
string
command: 'exportsNodeModules';
args:
directory: string;
project?: Project;
folderExcludePatterns?: string[];
fileExcludePatterns?: string[];
Output:
Array <{
name: string;
module?: string;
filepath?: string;
isDefault?: boolean;
}>,
command: 'exportsFromDirectory';
args:
directory: string;
project?: Project;
folderExcludePatterns?: string[];
fileExcludePatterns?: string[];
If directory will contains tsconfig.json or jsonconfig.json then source files
will be added according to include, exclude patterns.
folderExcludePatterns, fileExcludePatterns will be ignored.
Output:
Array <{
name: string;
module?: string;
filepath?: string;
isDefault?: boolean;
}>,
FAQs
Parse ecmascript modules and collect names of export vars, functions, etc.
The npm package import-adjutor receives a total of 2 weekly downloads. As such, import-adjutor popularity was classified as not popular.
We found that import-adjutor 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.