# Welcome

`nr` (short for "[npm run](https://docs.npmjs.com/cli/v7/commands/npm-run-script)") is a modern, type-safe task runner for JavaScript projects.

It can serve as a replacement for or complement to [NPM package scripts](https://docs.npmjs.com/cli/v7/commands/npm-run-script).

This guide will show you how to use `nr` to define, organize and document package scripts.

{% hint style="info" %}
**Protip:** Feel free to use the [nr sandbox](https://stackblitz.com/edit/nr-sandbox) on Stackblitz to experiment with `nr` as you read this guide.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://darkobits.gitbook.io/nr/welcome.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
