Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mohebifar/pasoor
:spades: A simple API for game cards.
https://github.com/mohebifar/pasoor
Last synced: 16 days ago
JSON representation
:spades: A simple API for game cards.
- Host: GitHub
- URL: https://github.com/mohebifar/pasoor
- Owner: mohebifar
- License: mit
- Created: 2016-03-20T18:44:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-23T23:38:03.000Z (about 8 years ago)
- Last Synced: 2024-10-10T22:15:08.925Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pasoor
**Pasoor** provides a simple API for game cards. The code is based on [node-cards](https://github.com/kbjr/node-cards).
## Installation
```
npm install pasoor
```## Usage
You can create an empty deck:
```js
import { Deck } from 'pasoor';
const deck = new Deck();
```Or with a preset:
```js
import { Deck, presets } from 'pasoor';
const deck = Deck.create(presets.shelem);
```