Registry / devops / wpress-extract

wpress-extract

JSON →
library1.0.0jsnpmunverified

A CLI tool for extracting .wpress archive files generated by the All-in-one-Wp-Migration WordPress plugin. Current stable version is 1.0.0. It provides a simple cross-platform alternative to platform-specific binaries, supporting Node.js >=10.0. Key differentiators: no dependencies, easy npx usage, and options for custom output directory and force overwrite.

npm install wpress-extract
INSTALL
IMPORT
SIG · WPRESS-EXTRACT
W
wpress-extract
devopsjavascriptv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import wpressExtract from 'wpress-extract'
const wpressExtract = require('wpress-extract').default
The package is primarily a CLI tool but can be used programmatically via ESM default export. CommonJS require returns the module with a default property.
CLI
Usage via npx or global install: npx wpress-extract <file>
Running without arguments
The CLI requires a .wpress file path as argument. It does not provide a command-line symbol import.
options
import { CLI } from 'wpress-extract'
Importing options directly
Options are passed as CLI arguments, not imported. The programmatic API accepts an options object with { out, force }.

Demonstrates basic usage to extract a .wpress file using npx and with custom output directory and force flag.

npx wpress-extract your-migration.wpress # Or install and run: npm i -g wpress-extract wpress-extract -o ./extracted --force your-migration.wpress
Debug
Known issues
gotchaPackage is primarily CLI but can be used programmatically; default export expects a file path.
fix
Use npx for CLI usage or import the default export with a string file path.
affects: >=1.0.0
gotchaNo output directory check unless --force is used; extraction will fail if output directory exists.
fix
Use --force flag to overwrite or specify a non-existing output directory with --out.
affects: >=1.0.0
gotchaOnly supports .wpress files generated by All-in-One WP Migration plugin; other wpress variants may not work.
fix
Ensure the file is from the correct plugin.
affects: >=1.0.0
Errors
Common errors & fixes
Error: ENOENT: no such file or directory, open 'your-migration.wpress'
File path is incorrect or file does not exist.
fix
Provide the correct path to the .wpress file.
Error: Output directory 'your-migration' already exists. Use --force to override.
Output directory already exists and --force flag is not used.
fix
Run again with --force flag or use a different output directory via --out.
wpress-extract: Invalid .wpress file
The file is not a valid .wpress archive from All-in-One WP Migration.
fix
Ensure you have the correct file format.
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
Amazon
1
Resources
wpress-extract — npm install wpress-extract · libregistry