1.0.1 • Published 12 months ago
wp-downloptimizer v1.0.1
⚡️ WP DOWNLOPTIMIZER ⚡️
Nodejs app to download and optimize all the assets (attachments) of a WordPress
Installation
npm install wp-downloptimizer
Usage
import wpDownloptimizer from 'wp-downloptimizer'
wpDownloptimizer({ assetsPath: ..., endpoint: ..., lastBuildTime?: ... } )
API
wpDownloptimizer(...)
- assetsPath: string --> Files output path.
- endpoint: string --> Endpoint of the WordPress API to retrieve the attachments.
- lastBuildTime: number (Optional) --> Timestamp of the last execution.