Creating Scripts

Creating Scripts


  1. The fastest way to create a script: Launch the app as per usual, then type the name of a script that doesn't exist:
My New Script

Then hit Enter.

  1. You can use TypeScript by opening the Kit tab and "Switch to TypeScript Mode"

  2. The files in the ~/.kenv/templates dir will be used when creating new scripts. You can create a template with your personal data filled out ~/.kenv/templates/john.js then in your .env, set KIT_TEMPLATE=john

// Author: John Lindquist
// Twitter: @johnlindquist

Why the Import?

The line is not required, but this comment helps code editors to apply the correct type definition files for autocomplete/code-hinting.

import "@johnlindquist/kit"
Discuss Post