
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
A TypeScript module for parsing and processing Primavera P6 XER files. This package provides both synchronous and asynchronous methods for parsing XER files and exporting them to Excel format.
npm install p6-xer
import { XerParser } from 'p6-xer';
// Create a parser instance
const parser = new XerParser({
skipEmptyTables: false // optional
});
// Async usage
async function parseXerAsync() {
const data = await parser.parse('path/to/file.xer');
await parser.exportToXlsx(data, {
outputPath: 'output.xlsx',
sheetNamePrefix: 'PREFIX_' // optional
});
}
// Sync usage
function parseXerSync() {
const data = parser.parseSync('path/to/file.xer');
parser.exportToXlsxSync(data, {
outputPath: 'output.xlsx'
});
}
# Install globally
npm install -g p6-xer
# Export XER to Excel
xer-parser export input.xer -o output.xlsx
# With options
xer-parser export input.xer -o output.xlsx -p PREFIX --skip-empty
XerParser
interface XerParserOptions {
encoding?: BufferEncoding; // Optional encoding override
skipEmptyTables?: boolean; // Skip tables with no rows
}
parse(filePath: string): Promise<XerData>
parseSync(filePath: string): XerData
exportToXlsx(data: XerData, options: ExportOptions): Promise<void>
exportToXlsxSync(data: XerData, options: ExportOptions): void
interface XerData {
tables: XerTable[];
header?: {
version: string;
date: string;
project: string;
id: string;
user: string;
database: string;
system: string;
currency: string;
};
}
interface XerTable {
name: string;
fields: string[];
rows: Record<string, string>[];
}
interface ExportOptions {
outputPath: string;
sheetNamePrefix?: string;
}
Options:
-o, --output <path> output file path (default: "output.xlsx")
-p, --prefix <prefix> sheet name prefix
--skip-empty skip empty tables
-h, --help display help for command
LGPL-3.0-only
Contributions are welcome! Please feel free to submit a Pull Request.
FAQs
A TypeScript module for parsing and processing Primavera P6 XER files
The npm package p6-xer receives a total of 4 weekly downloads. As such, p6-xer popularity was classified as not popular.
We found that p6-xer demonstrated a healthy version release cadence and project activity because the last version was released less than 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.