@kody/x
src/create-tweet.ts
12 lines · 435 B · TypeScriptimport { createTweet } from './client.ts'
import type { XCreateTweetParams } from './client.ts'
/**
* Create or dry-run an X post. Publishing requires confirm: true.
* @example
* import createTweet from 'kody:@kody/x/create-tweet'
* const draft = await createTweet({ text: 'Hello from Kody', dryRun: true })
*/
export default async function createTweetEntrypoint(params: XCreateTweetParams) {
return await createTweet(params)
}