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: 5 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 (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-04T03:38:36.000Z (about 8 years ago)
- Last Synced: 2025-02-05T21:07:55.513Z (5 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
[](https://www.npmjs.com/package/discogs-basics)
[](https://circleci.com/gh/sbstjn/discogs-basics)
[](https://github.com/sbstjn/discogs-basics/blob/master/LICENSE.md)
[](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.