← Public packages
@kody/x
Look up X users and tweets, search recent posts, and preview guarded posts through saved OAuth.
Files
import { 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)
}