Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

nut.js TypeScript sample

nut.js is written in TypeScript and thus fully supports TypeScript

Setup

Install TypeScript in your project.

npm i typescript ts-node

Afterwards, initialize a new TypeScript project:

npx tsc --init

Write your test

Let's create a simple demo test:

import { Region, screen } from "@nut-tree/nut-js";

(async () => {
	await screen.highlight(new Region(100, 200, 300, 400));
})();

Run

npx ts-node index.ts