Local Storage
Custom named user settings per framework can be saved to local storage as JSON and reused across all pages in the same domain. Extensions are configured using the same procedure.
Framework
Save
squared.setFramework(android, { compressImages: true }, "android-example");
Load
squared.setFramework(android, "android-example");
Output
Save
await squared.copyTo("/path/project", {/* options */}, "copy-example", true); // Will overwrite when "true" and not merge with previously saved settings
Load
// Local storage
await squared.copyTo("/path/project", {/* options */}, "copy-example"); // Object.assign({ ...copy-example }, options)
await squared.copyTo("/path/project", "copy-example"); // options = { ...copy_example }
// External
await squared.copyTo("/path/project", {/* options */}, "http://localhost:3000/copy-to/base-config.json"); // Object.assign({ ...base-config }, options)
await squared.copyTo("/path/project", "http://localhost:3000/copy-to/base-config.json"); // options = { ...base-config }