diff --git a/README.md b/README.md index b1a363e..12f5061 100644 --- a/README.md +++ b/README.md @@ -153,6 +153,22 @@ woodland ## Command Line Interface (CLI) When woodland is installed as a global module you can serve the contents of a folder by executing `woodland` in a shell. Optional parameters are `--ip=127.0.0.1` & `--port=8000`. +```console +Node.js v20.8.0 +PS C:\Users\jason\Projects> npm install -g woodland + +changed 6 packages in 1s +PS C:\Users\jason\Projects> woodland +id=woodland, hostname=localhost, ip=127.0.0.1, port=8000 +127.0.0.1 - [7/Oct/2023:15:18:18 -0400] "GET / HTTP/1.1" 200 1327 +127.0.0.1 - [7/Oct/2023:15:18:26 -0400] "GET /woodland/ HTTP/1.1" 200 2167 +127.0.0.1 - [7/Oct/2023:15:18:29 -0400] "GET /woodland/dist/ HTTP/1.1" 200 913 +127.0.0.1 - [7/Oct/2023:15:18:32 -0400] "GET /woodland/dist/woodland.js HTTP/1.1" 200 26385 +127.0.0.1 - [7/Oct/2023:15:18:47 -0400] "GET /woodland/benchmark.js HTTP/1.1" 200 1657 +127.0.0.1 - [7/Oct/2023:15:18:58 -0400] "GET /woodland/sample.js HTTP/1.1" 200 845 +127.0.0.1 - [7/Oct/2023:15:19:07 -0400] "GET /woodland/sample.js HTTP/1.1" 304 0 +``` + ## Configuration ```json diff --git a/dist/woodland.cjs b/dist/woodland.cjs index 6bfaa82..79efb3d 100644 --- a/dist/woodland.cjs +++ b/dist/woodland.cjs @@ -3,7 +3,7 @@ * * @copyright 2023 Jason Mulligan * @license BSD-3-Clause - * @version 18.0.5 + * @version 18.0.6 */ 'use strict'; diff --git a/dist/woodland.js b/dist/woodland.js index 7d57ead..aed1b3e 100644 --- a/dist/woodland.js +++ b/dist/woodland.js @@ -3,7 +3,7 @@ * * @copyright 2023 Jason Mulligan * @license BSD-3-Clause - * @version 18.0.5 + * @version 18.0.6 */ import {STATUS_CODES,METHODS}from'node:http';import {join,extname,resolve}from'node:path';import {EventEmitter}from'node:events';import {readFileSync,createReadStream,stat,readdir}from'node:fs';import {etag}from'tiny-etag';import {precise}from'precise';import {lru}from'tiny-lru';import {fileURLToPath,URL}from'node:url';import {coerce}from'tiny-coerce';import mimeDb from'mime-db';const ALL = "*"; const DELIMITER = "|"; diff --git a/package-lock.json b/package-lock.json index f02d128..2ecf830 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "woodland", - "version": "18.0.5", + "version": "18.0.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "woodland", - "version": "18.0.5", + "version": "18.0.6", "license": "BSD-3-Clause", "dependencies": { "mime-db": "^1.52.0", diff --git a/package.json b/package.json index 7af03bd..3fb8328 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "woodland", - "version": "18.0.5", + "version": "18.0.6", "description": "Lightweight HTTP framework with automatic headers", "type": "module", "types": "types/woodland.d.ts",