# dtb

> The useful development toolbox for Node.js packages.

Latest version **1.0.1** (published 2018-06-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install dtb
pnpm add dtb
yarn add dtb
bun add dtb
```

## 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.1 |
| Published | 2018-06-18 |
| First published | 2018-06-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 15.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Richard Szakacs, richardszkcs@gmail.com, www.richardszkcs.com |
| Maintainers | richardszkcs |
| Keywords | dev, development, tool, tools, toolbox, toolkit, util, utils, helper, helpers, node, nodejs, package |

## Links

- npm: https://www.npmjs.com/package/dtb
- Repository: https://github.com/atjse/dtb
- Homepage: https://github.com/atjse/dtb#readme
- Issues: https://github.com/atjse/dtb/issues
- npm.io page: https://npm.io/package/dtb

## Dependencies (3)

- [connect](https://npm.io/package/connect.md) ^3.6.6
- [pkg-dir](https://npm.io/package/pkg-dir.md) ^3.0.0
- [get-port](https://npm.io/package/get-port.md) ^3.2.0

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2018-06-18
- 1.0.0 — 2018-06-18
- 0.0.2 — 2018-06-18

## README

🛠 dev-[toolbox] 🛠
===================

[![Travis CI - Build Status][travis-badge]][travis-url]
[![Dependencies][dep-badge]][dep-url]
[![Coveralls - Code Coverage Status][cov-badge]][cov-url]
[![JavaScript Style Guide][jsstd-badge]][jsstd-url]
[![PRs Welcome][pr-badge]][pr-url]

The **useful development toolbox** for Node.js packages.

Installation
------------

```bash
# Using NPM
npm install dtb --save-dev

# Using Yarn
yarn add dtb --dev
```

Usage
-----

The [**server**](src/server/index.js) module:

```javascript
const toolbox = require('dtb')
const server = toolbox.server

// ...

// get a free port
const freePort = await server.getPort()

// ...

// start a temporary server
const temp = await server.startTempServer()

console.log('temp started', temp.host, temp.port)

// stop the temporary server
await temp.stop()
```

For more check out the [**docs**](doc/API.md), [**source**](src/server), and 
[**tests**](test/server.test.js).

---

The [**files**](src/files/index.js) module:

```javascript
const toolbox = require('dtb')
const files = toolbox.files

// ...

// get the normalized path
files.path('/../src/')

// get the normalized path relative to your project's root directory
files.root('/src')
```

For more check out the [**docs**](doc/API.md), [**source**](src/files), and 
[**tests**](test/files.test.js).

Contribution
------------

**Any contribution is appreciated**. To get going, check out the 
[**contribution guidelines**](CONTRIBUTING.md), then the 
[**development manual**](DEVELOPMENT.md). 
***Thank you, have fun!***

License
-------

[MIT](LICENSE.md) @ [Richard Szakacs](https://www.github.com/richardszkcs)

 [travis-badge]: https://travis-ci.org/atjse/dtb.svg?branch=master
 [travis-url]:   https://travis-ci.org/atjse/dtb

 [dep-badge]:    https://david-dm.org/atjse/dtb/status.svg
 [dep-url]:      https://david-dm.org/atjse/dtb

 [cov-badge]:    https://coveralls.io/repos/github/atjse/dtb/badge.svg?branch=master
 [cov-url]:      https://coveralls.io/github/atjse/dtb?branch=master

 [jsstd-badge]:  https://img.shields.io/badge/code_style-standard-brightgreen.svg
 [jsstd-url]:    https://standardjs.com

 [pr-badge]:     https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
 [pr-url]:       CONTRIBUTING.md

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