
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.
litematic-parser
Advanced tools
A parser to get useful information from .litemetica (Minecraft schematics) files
A parser to get useful information from .litematic (Minecraft schematics) files.
npm install litematic-parser
import { loadLitematic } from 'litematic-parser';
import { resolve } from 'path';
async function main() {
const filePath = resolve('./my-schematic.litematic');
try {
const litematic = await loadLitematic(filePath);
console.log(`Loaded schematic: ${litematic.Metadata.Name}`);
console.log(`Author: ${litematic.Metadata.Author}`);
console.log(`Size: ${litematic.Metadata.EnclosingSize.x}x${litematic.Metadata.EnclosingSize.y}x${litematic.Metadata.EnclosingSize.z}`);
// Access regions and blocks
for (const [name, region] of Object.entries(litematic.Regions)) {
console.log(`Region: ${name}`);
console.log(`Block Palette Size: ${region.BlockStatePalette.length}`);
}
} catch (error) {
console.error('Failed to load litematic:', error);
}
}
main();
loadLitematic(filePath: string): Promise<Litematic>Reads, decompresses, and parses a .litematic file.
.litematic file.Litematic object containing metadata and region data.The package exports TypeScript interfaces for the parsed data:
Litematic: Root object.Metadata: Schematic metadata (Name, Author, Size, etc.).Region: Contains block states, entities, and tile entities.BlockStatePalette: Palette of blocks used in the region.# Build the project
npm run build
# Run tests
npm test
MIT
FAQs
A parser to get useful information from .litemetica (Minecraft schematics) files
We found that litematic-parser 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
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.