# async-track

> you can use await without mjs extension

Latest version **1.1.9** (published 2022-03-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install async-track
pnpm add async-track
yarn add async-track
bun add async-track
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.9 |
| Published | 2022-03-22 |
| First published | 2022-03-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | aryarte |
| Maintainers | aryarte |
| Keywords | async |

## Links

- npm: https://www.npmjs.com/package/async-track
- npm.io page: https://npm.io/package/async-track

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 1.1.9 (latest) — 2022-03-22
- 1.1.8 — 2022-03-21
- 1.1.7 — 2022-03-21
- 1.1.6 — 2022-03-21

## README

# Async-Track

you can use await out of a async function

## installation

```bash
npm i async-track
```

## usage
first create file async.js and a 
*.js file, in this case i use
main.js
```bash
touch async.js main.js
```

then editing the main.js
```node
require("async-track")

```
type somecode in async.js

```node
//is global scoope
const test = new Promise((resolve,reject)=>{
	resolve("blabla")
})
console.log(test)//Promise <pending>
//you can use
Async :
	//this async scoope
	let name = await test
	console.log(name)//blabla
	//you can use all of javascript syntax on here
	const fs = require('fs')

	if(true){
		console.log("hello world")
	}
	//more something like above
```
then run the main.js

```bash
node main.js
```

you should be run the main.js or other file name which required to Async-track
and you can require module to async.js file.

---
_Source: https://npm.io/package/async-track · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
