npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@nyar/pe-assembler-wasm32

v0.0.0

Published

Assembler for Portable Executable (*.exe,*.dll)

Downloads

8

Readme

PE WebAssembly Library

WebAssembly bindings for the PE (Portable Executable) assembler, providing JavaScript/TypeScript interfaces for browser and Node.js environments.

Overview

This package provides WebAssembly bindings for the PE assembler, enabling:

  • Browser Usage: Run PE assembly operations directly in web browsers
  • Node.js Support: Use PE assembler in server-side JavaScript applications
  • TypeScript Support: Full TypeScript definitions for type safety
  • Modern Tooling: Vitest for testing, Vite for bundling

Installation

# Install from the workspace
pnpm install

# Or install directly (if published)
npm install pe-wasm32

Usage

JavaScript/TypeScript

import { reader, writer } from './dist/pe_assembler.js';

// Read PE data
const result = reader.read(inputData);

// Write PE data
const output = writer.write(assemblyData);

Browser Usage

<script type="module">
  import { reader, writer } from './dist/pe_assembler.js';
  
  // Use reader and writer interfaces
  const peData = reader.read(fileBuffer);
</script>

API Reference

Reader Interface

  • read(data: Uint8Array): PEStructure - Parse PE file data
  • readFile(filePath: string): Promise<PEStructure> - Read PE file from path

Writer Interface

  • write(data: AssemblyData): Uint8Array - Generate PE file from assembly
  • writeFile(filePath: string, data: AssemblyData): Promise<void> - Write PE file to path

Development

Building

# Build WebAssembly
pnpm build:wasm

# Transpile JavaScript
pnpm transpile:debug

# Build for release
pnpm build:release

Testing

# Run tests
pnpm test:run

# Run tests with UI
pnpm test:ui

# Run tests with coverage
pnpm test:coverage

Project Structure

  • src/ - Source code and WebAssembly bindings
  • dist/ - Built artifacts (JavaScript, TypeScript definitions, WASM)
  • tests/ - Test files using Vitest
  • vitest.config.ts - Test configuration

Integration

This package integrates with:

  • pe-rust: Core Rust library providing the WebAssembly functionality
  • Modern Web Tooling: Works with Vite, Webpack, and other bundlers
  • Testing Frameworks: Compatible with Vitest, Jest, and other test runners

License

See the root License.md for details.