
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
@wllmtrng/p6-xer
Advanced tools
A TypeScript module for parsing and processing Primavera P6 XER files
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 @wllmtrng/p6-xer
import { XerParser } from '@wllmtrng/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 @wllmtrng/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
XerParserinterface XerParserOptions {
encoding?: BufferEncoding; // Optional encoding override
skipEmptyTables?: boolean; // Skip tables with no rows
}
parse(filePath: string): Promise<XerData>parseSync(filePath: string): XerDataexportToXlsx(data: XerData, options: ExportOptions): Promise<void>exportToXlsxSync(data: XerData, options: ExportOptions): voidinterface 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
MIT
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 @wllmtrng/p6-xer receives a total of 0 weekly downloads. As such, @wllmtrng/p6-xer popularity was classified as not popular.
We found that @wllmtrng/p6-xer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.