From 662c43abf1b2bf073f8de3e19ba437a36bbe01dc Mon Sep 17 00:00:00 2001 From: imed jaberi Date: Sat, 12 Oct 2024 17:51:49 +0100 Subject: [PATCH] v1.0.0 --- README.md | 13 +++++++++++++ package.json | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4895738..3d24313 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ Output [Common Log Format](http://en.wikipedia.org/wiki/Common_Log_Format) access logs to any stream. Defaults to `process.stdout`. +> Notice: We recommend using `@koa/access-log` for installation, as both `koa-accesslog` and `@koa/access-log` refer to the same module. However, in our next major version bump (v2), we will deprecate `koa-accesslog` and only maintain `@koa/access-log`. + ## Install ```bash @@ -11,11 +13,22 @@ npm i koa-accesslog yarn add koa-accesslog ``` +or + +```bash +# npm .. +npm i @koa/access-log +# yarn .. +yarn add @koa/access-log +``` + ## Usage ```js const Koa = require('koa'); const accesslog = require('koa-accesslog'); +// or +// const accesslog = require('@koa/access-log'); const app = new Koa(); app.use(accesslog()); diff --git a/package.json b/package.json index 73c5122..8ca9896 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "koa-accesslog", - "version": "0.0.2", + "version": "1.0.0", "description": "Middleware for common log format access logs", "main": "index.js", "files": [