feat: export init function

This commit is contained in:
lucas-neynar
2025-03-26 11:16:12 -07:00
parent b940d16d4c
commit f018890e78
3 changed files with 21 additions and 8 deletions

View File

@@ -17,7 +17,13 @@ cd <PROJECT_NAME>
npm run dev
```
## Deploy to Vercel
### Importing the CLI
To invoke the CLI directly in JavaScript, add the npm package to your project and use the following import statement:
```{javascript}
import { init } from 'create-neynar-farcaster-frame';
```
## Deploying to Vercel
For projects that have made minimal changes to the quickstart template, deploy to vercel by running:
```{bash}
npm run deploy:vercel