Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sbstjn/discogs-basics
Minimal wrapper for the Discogs.com Collection API
https://github.com/sbstjn/discogs-basics
api discogs typescript
Last synced: about 2 months ago
JSON representation
Minimal wrapper for the Discogs.com Collection API
- Host: GitHub
- URL: https://github.com/sbstjn/discogs-basics
- Owner: sbstjn
- License: mit
- Created: 2017-06-04T02:41:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-04T03:38:36.000Z (over 7 years ago)
- Last Synced: 2024-10-28T15:38:15.722Z (2 months ago)
- Topics: api, discogs, typescript
- Language: TypeScript
- Size: 35.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Discogs Collection Basics
[![npm](https://img.shields.io/npm/v/discogs-basics.svg)](https://www.npmjs.com/package/discogs-basics)
[![CircleCI](https://img.shields.io/circleci/project/github/sbstjn/discogs-basics.svg)](https://circleci.com/gh/sbstjn/discogs-basics)
[![license](https://img.shields.io/github/license/sbstjn/discogs-basics.svg)](https://github.com/sbstjn/discogs-basics/blob/master/LICENSE.md)
[![Coveralls](https://img.shields.io/coveralls/sbstjn/discogs-basics.svg)](https://coveralls.io/github/sbstjn/discogs-basics)Minimal wrapper for the [Discogs](https://discogs.com) Collection API.
## Install
```bash
$ > yarn install discogs-basics
```## Usage
First [create an access token](https://www.discogs.com/de/settings/developers) for accessing the Discogs API.
```javascript
const Discogs = new API('username', 'token')// Get details about most recent record
Discogs.Last().then(console.log)// Get number of items in your collection
Discogs.Items().then(console.log)// Get maximum, minimum, median collection value
Discogs.Value().then(console.log)
```## License
Feel free to use the code, it's released using the [MIT license](https://github.com/sbstjn/discogs-basics/blob/master/LICENSE.md).
## Contributors
- [Sebastian MΓΌller](https://github.com/sbstjn)
## Contribution
You are more than welcome to contribute to this project! π
To make sure you have a pleasant experience, please read our [code of conduct](CODE_OF_CONDUCT.md). It outlines core values and believes and will make working together a happier experience.