# code-line-number

> Determines the current line number in JavaScript

Latest version **1.0.4** (published 2022-05-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install code-line-number
pnpm add code-line-number
yarn add code-line-number
bun add code-line-number
```

## 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.0.4 |
| Published | 2022-05-10 |
| First published | 2022-05-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Vitaliy Diachuk |
| Maintainers | vitaliy-dyachuk |
| Keywords | console, log, number, line, code |

## Links

- npm: https://www.npmjs.com/package/code-line-number
- Repository: https://github.com/SpiritUrban/code-line-number
- Homepage: https://github.com/SpiritUrban/code-line-number#readme
- Issues: https://github.com/SpiritUrban/code-line-number/issues
- npm.io page: https://npm.io/package/code-line-number

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.0.4 (latest) — 2022-05-10
- 1.0.3 — 2022-05-10
- 1.0.2 — 2022-05-09
- 1.0.1 — 2022-05-09
- 1.0.0 — 2022-05-09

## README

# code-line-number
 Determines the current line number in JavaScript

 
## Installing

Using npm:

```bash
$ npm install code-line-number
```

## Example

```js
const ln = require('code-line-number');
// or
import ln from 'code-line-number';

ln(2); // => 20
// ln(2: Is a depth level, can be 3 or other );
ln(2, 'report'); // => 20, more data in console/terminal
// You can use 'report' for watching call stack and choose depth level you need
```

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