# beesly

> Beesly makes interacting with HAL+JSON resources a joyful experience

Latest version **1.0.0** (published 2017-02-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install beesly
pnpm add beesly
yarn add beesly
bun add beesly
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-02-01 |
| First published | 2015-12-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Kristopher Wilson |
| Maintainers | mrkrstphr |

## Links

- npm: https://www.npmjs.com/package/beesly
- Repository: https://github.com/beesly/beesly
- Homepage: https://github.com/beesly/beesly#readme
- Issues: https://github.com/beesly/beesly/issues
- npm.io page: https://npm.io/package/beesly

## Dependencies (2)

- [uri-templates](https://npm.io/package/uri-templates.md) ^0.1.9
- [babel-register](https://npm.io/package/babel-register.md) ^6.3.13

## Recent versions

- 1.0.0 (latest) — 2017-02-01
- 0.7.0 — 2017-02-01
- 0.6.0 — 2016-12-05
- 0.5.0 — 2016-08-26
- 0.4.5 — 2016-08-25
- 0.4.4 — 2016-08-25
- 0.4.3 — 2016-08-23
- 0.4.2 — 2016-02-12
- 0.4.1 — 2016-02-12
- 0.4.0 — 2016-02-07
- 0.3.0 — 2016-02-06
- 0.2.1 — 2016-02-02
- 0.2.0 — 2016-01-31
- 0.1.2 — 2016-01-12
- 0.1.1 — 2016-01-11
- … 1 more at https://npm.io/package/beesly/versions

## README

# beesly

> Beesly makes interacting with HAL+JSON resources a joyful experience

[![Build Status](https://img.shields.io/travis/beesly/beesly.svg?style=flat-square)](https://travis-ci.org/beesly/beesly)
[![Version](https://img.shields.io/npm/v/beesly.svg?style=flat-square)](https://www.npmjs.com/package/beesly)

[Read the Documentation](https://beesly.github.io)

A modest example:

```js
import {Resource} from 'beesly';
import {Customer, LineItem} from './resources';

export class Order extends Resource {
  setup() {
    this.hasOne('customer', {class: Customer});
    this.hasMany('line_item', {class: LineItem, accessor: 'lineItems'});
  }
}
```

```js
import Order from './resources';

var order = Order.get({id: 1000});

order.lineItems().forEach((item) => {
  console.log(`${item.product().name}, ${item.quantity} units`);
})
```

---
_Source: https://npm.io/package/beesly · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
