UNPKG

nx-remotecache-gcp

Version:

Remote caching for @nrwl/nx using Google Cloud Buckets

19 lines (10 loc) 262 B
import { Storage } from "@google-cloud/storage"; const storageClient = new Storage(); const bucket = storageClient.bucket("fake"); try { const [bucketExists] = await bucket.exists(); } catch (e) { if (e.code === 403){ } console.log(e); }