Skip to content

Commit be22780

Browse files
committed
📦 rename npm publish package name
1 parent 07c0507 commit be22780

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@ Koa-Authz
22
====
33
[![NPM version][npm-image]][npm-url]
44
[![NPM download][download-image]][download-url]
5-
[![codebeat badge](https://codebeat.co/badges/c17c9ee1-da42-4db3-8047-9574ad2b23b1)](https://codebeat.co/projects/github-com-node-casbin-koa-authz-master)
5+
[![codebeat badge](https://codebeat.co/badges/9defa882-898c-4dcb-91a6-7e8f061ccaac)](https://codebeat.co/projects/github-com-node-casbin-koa-authz-master)
66
[![Build Status](https://travis-ci.org/node-casbin/koa-authz.svg?branch=master)](https://travis-ci.org/node-casbin/koa-authz)
77
[![Coverage Status](https://coveralls.io/repos/github/node-casbin/koa-authz/badge.svg?branch=master)](https://coveralls.io/github/node-casbin/koa-authz?branch=master)
88
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/casbin/lobby)
99

10-
[npm-image]: https://img.shields.io/npm/v/casbin-koa-authz.svg?style=flat-square
11-
[npm-url]: https://npmjs.org/package/casbin-koa-authz
12-
[download-image]: https://img.shields.io/npm/dm/casbin-koa-authz.svg?style=flat-square
13-
[download-url]: https://npmjs.org/package/casbin-koa-authz
10+
[npm-image]: https://img.shields.io/npm/v/koa-authz.svg?style=flat-square
11+
[npm-url]: https://npmjs.org/package/koa-authz
12+
[download-image]: https://img.shields.io/npm/dm/koa-authz.svg?style=flat-square
13+
[download-url]: https://npmjs.org/package/koa-authz
1414

1515
Koa-Authz is an authorization middleware for [Koa](https://github.com/koajs/koa), it's based on ``Node-Casbin``: [https://github.com/casbin/node-casbin](https://github.com/casbin/node-casbin).
1616

1717
## Installation
1818

1919
```shell
2020
# nodejs version >= 7.6.0
21-
npm install casbin-koa-authz
21+
npm install koa-authz
2222
```
2323

2424
## Simple Example
@@ -27,7 +27,7 @@ npm install casbin-koa-authz
2727
const { Enforcer } = require('casbin')
2828
const Koa = require('koa')
2929
const app = new Koa()
30-
const authz = require('casbin-koa-authz')
30+
const authz = require('koa-authz')
3131

3232
// response
3333
app.use((ctx, next) => {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "casbin-koa-authz",
2+
"name": "koa-authz",
33
"version": "1.0.0",
4-
"description": "casbin-koa-authz is an authorization middleware for Koa",
4+
"description": "koa-authz is an authorization middleware for Koa",
55
"main": "authz.js",
66
"scripts": {
77
"prepublish": "npm run lint && npm run test",

0 commit comments

Comments
 (0)