
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
now-client
Advanced tools
[](https://github.com/vercel/vercel/discussions)
The official Node.js client for deploying to Vercel.
Firstly, install the package:
npm install @vercel/client
# or
yarn add @vercel/client
Next, load it:
// v2
const { createDeployment } = require('@vercel/client');
// v1
const { createLegacyDeployment } = require('@vercel/client');
Then call inside a for...of
loop to follow the progress with the following arguments:
<path>
- a directory path / file path / array of file paths (must be on the same level)<options>
- An object containing token
, an optional teamId
and any vercel.json
-valid fieldsasync function deploy() {
let deployment;
for await (const event of createDeployment({
token: process.env.TOKEN,
path: '/Users/vercel-user/projects/front',
})) {
if (event.type === 'ready') {
deployment = event.payload;
break;
}
}
return deployment;
}
Full list of events:
[
// File events
'hashes-calculated',
'file-count',
'file-uploaded',
'all-files-uploaded',
// Deployment events
'created',
'building',
'ready',
'alias-assigned',
'warning',
'error',
];
You can also get the events set programmatically:
import { EVENTS } from '@vercel/client';
FAQs
[](https://github.com/vercel/vercel/discussions)
The npm package now-client receives a total of 113 weekly downloads. As such, now-client popularity was classified as not popular.
We found that now-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 56 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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.