@layerart/serve-art
v1.1.0
Published
A small tool for serving the files in a directory so that they can be displayed in an iframe on another domain.
Downloads
244
Readme
@layerart/serve-art
A small tool for serving the files in a directory so that they can be displayed in an iframe on another domain and hot reload when a file is updated.
Command line options
- --port,-p - Set the port for the server, default is 8080.
- --host,-h - Set the host for the server, default is 0.0.0.0 or 127.0.0.1.
- --root,-r - Set the root directory for the server, default is cwd.
- --sandbox,-s - Specify the sandbox url. Default: https://app.layer.com/submissions/generative/sandbox
Usage
npx @layerart/serve-art
Global installation and terminal use
npm i -g @layerart/serve-art
serve-art