1.0.0 • Published 10 months ago
curl2hars v1.0.0
curl2hars
This is a plugin used on the browser side to convert curl commands into har objects
usage
import webCurlToHar, { setConfig } from 'curl2hars';
if (isElectron()) {
if (process.env.NODE_ENV === 'development') {
setConfig('./');
} else {
setConfig(window?.path.join(window.__dirname, './build/'));
}
} else {
setConfig('./');
}
1.0.0
10 months ago