Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/stash

src/recent.ts

15 lines · 473 B · TypeScript
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)
}