Skip to content
← Public packages

@kody/stash

Keep searchable notes, reminders, and facts in this package's storage — no OAuth, API keys, or bot tokens.

src/recent.ts

15 lines · 473 B · TypeScript
Raw
import { listRecent } from './lib/notes.ts'
export { listRecent }

/**
 * List the most recently created stash notes.
 *
 * @returns Newest notes up to `limit` (default 20, max 50).
 * @example
 * import listRecent from 'kody:@kody/stash/recent'
 * const result = await listRecent({ limit: 5 })
 * // => { notes: [{ id: '...', summary: '...', createdAt: '...' }] }
 */
export default async function listRecentStashNotes(input?: unknown) {
	return await listRecent(input)
}