Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@cannery/hoist
Advanced tools
Upload and host static websites in Google Storage Buckets.
yarn global add @cannery/hoist
# or
npm install -g @cannery/hoist
Hoist understands, and automatically pre-processes for production, the following file types out of the box:
All other files discovered are uploaded as-is to the hosting provider. All files are gzipped as they are uploaded and appropriate cache-key headers are set.
Hoist comes with just two commands:
$ hoist up [directory]
$ hoist down
hoist up
will make your site public to the world. If you pass a directory as the second CLI argument it will upload that directory to your production site.
hoist down
will make your site private, nobody will be able to see files in the Google Storage Bucket.
Hoist needs a Service Account and a Service Account Key with Storage Bucket management permissions to operate.
When you run Hoist from the CLI, it will crawl up directories until it finds a gcloud.json
file with the Service Account Key and attempt to use it for authentication. To configure the bucket that the site will upload to, add a single bucket
field to this gcloud.json
file with the target bucket name.
Once configured, your gcloud.json
file should look something like this:
{
"type": "service_account",
"project_id": "projectid",
"bucket": "bucketname.com",
"private_key_id": "01234567890123456789",
"private_key": "-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n",
"client_email": "name@projectid.iam.gserviceaccount.com",
"client_id": "01234567890123456789",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/name%40projectid.iam.gserviceaccount.com"
}
FAQs
DIY Static Website Hosting
The npm package @cannery/hoist receives a total of 65 weekly downloads. As such, @cannery/hoist popularity was classified as not popular.
We found that @cannery/hoist demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.