
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@cloudcannon/dist
Advanced tools
Allows you to make a clone of your site with a different baseurl.
The CLI for the CloudCannon dist package.
Requires node >=11.0.0
build
Cleans dest, and copies files from src to dest/baseurl. CSS and HTML files have their hrefs/urls/etc to include baseurl.
$ dist build -b baseurlName
[-b | --baseurl ]
clean
Deletes all files in dest.
$ dist clean -d path/To/Destination
clone-assets
Copy the files from source to destination/baseurl without altering the data in any way.
$ dist clone-assets -b baseurl
[-b | --baseurl ]
dist
Runs build, serve, then watch. Is the default command (runs when no command is specified by user.)
$ dist -s path/to/src -d path/to/dest -b baseurlName
[-b | --baseurl ]
rewrite-css
Copies css files from src to dest/baseurl. Then rewrites the newly copied files so that urls/hrefs/etc that reference local content have baseurl prepended to them.
$ dist rewrite-css -b baseurlName
[-b | --baseurl ]
rewrite-html
Copies html files from src to dest/baseurl. Rewrites the newly copied files so that urls/hrefs/etc that reference local content have baseurl prepended to them.
$ dist rewrite-html -b baseurlName
[-b | --baseurl ]
serve
Serves the files on a local webserver, so that they my be viewed in a browser.
$ dist serve -d path/to/dest
watch
Continuously watches the dest/baseurl directory to check for changes. If a change occurs, then the browser that is viewing the local webserver will be reloaded, so that the new content can be viewed. Because this process runs continously, it does not return an exit code because it must be cancelled by the user in-terminal.
$ dist watch -d path/to/dest
FAQs
Allows you to make a clone of your site with a different baseurl.
The npm package @cloudcannon/dist receives a total of 7 weekly downloads. As such, @cloudcannon/dist popularity was classified as not popular.
We found that @cloudcannon/dist demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.