🛠 dev-[toolbox] 🛠
The useful development toolbox for Node.js packages.
Installation
# Using NPM npm install dtb --save-dev # Using Yarn yarn add dtb --dev
Usage
The server module:
const toolbox = const server = toolboxserver // ... // get a free portconst freePort = await server // ... // start a temporary serverconst temp = await server console // stop the temporary serverawait temp
For more check out the docs, source, and tests.
The files module:
const toolbox = const files = toolboxfiles // ... // get the normalized pathfiles // get the normalized path relative to your project's root directoryfiles
For more check out the docs, source, and tests.
Contribution
Any contribution is appreciated. To get going, check out the contribution guidelines, then the development manual. Thank you, have fun!