https://github.com/cnpm/npm-user-service
npm user service for cnpmjs.org
https://github.com/cnpm/npm-user-service
Last synced: 9 months ago
JSON representation
npm user service for cnpmjs.org
- Host: GitHub
- URL: https://github.com/cnpm/npm-user-service
- Owner: cnpm
- License: other
- Created: 2014-07-26T16:44:20.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2017-05-19T09:41:57.000Z (about 9 years ago)
- Last Synced: 2025-07-09T04:39:08.406Z (12 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 14
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
npm-user-service
=======
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![Gittip][gittip-image]][gittip-url]
[![David deps][david-image]][david-url]
[npm-image]: https://img.shields.io/npm/v/npm-user-service.svg?style=flat
[npm-url]: https://npmjs.org/package/npm-user-service
[travis-image]: https://img.shields.io/travis/cnpm/npm-user-service.svg?style=flat
[travis-url]: https://travis-ci.org/cnpm/npm-user-service
[coveralls-image]: https://img.shields.io/coveralls/cnpm/npm-user-service.svg?style=flat
[coveralls-url]: https://coveralls.io/r/cnpm/npm-user-service?branch=master
[gittip-image]: https://img.shields.io/gittip/fengmk2.svg?style=flat
[gittip-url]: https://www.gittip.com/fengmk2/
[david-image]: https://img.shields.io/david/cnpm/npm-user-service.svg?style=flat
[david-url]: https://david-dm.org/cnpm/npm-user-service
[npm] user service for [cnpmjs.org](https://github.com/cnpm/cnpmjs.org/wiki/Use-Your-Own-User-Authorization)
## Install
```bash
$ npm install npm-user-service --save
```
## Usage
Set `userService` on [cnpmjs.org/config/config.js](https://github.com/cnpm/cnpmjs.org/blob/master/config/index.js)
```js
var NpmUserService = require('npm-user-service');
config.userService = new NpmUserService();
```
## License
MIT
[npm]: https://npmjs.org