# @solidgoldpig/fb-utils-node

> Form Builder utility methods

Latest version **0.1.7** (published 2021-04-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @solidgoldpig/fb-utils-node
pnpm add @solidgoldpig/fb-utils-node
yarn add @solidgoldpig/fb-utils-node
bun add @solidgoldpig/fb-utils-node
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.7 |
| Published | 2021-04-08 |
| First published | 2021-04-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 17.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | github@alex.solidgoldpig.com |
| Maintainers | solidgoldpig |

## Links

- npm: https://www.npmjs.com/package/@solidgoldpig/fb-utils-node
- Repository: https://github.com/solidgoldpig/fb-utils-node
- Homepage: https://github.com/solidgoldpig/fb-utils-node#readme
- Issues: https://github.com/solidgoldpig/fb-utils-node/issues
- npm.io page: https://npm.io/package/@solidgoldpig/fb-utils-node

## Dependencies (1)

- [sinon](https://npm.io/package/sinon.md) ^7.3.2

## Recent versions

- 0.1.7 (latest) — 2021-04-08
- 0.1.6 — 2021-04-07
- 0.1.1 — 2021-04-07

## README

# fb-utils-node

Form Builder utility methods

## Installing

``` shell
npm install @solidgoldpig/fb-utils-node
```

## Usage

``` js
const FBUtils = require('@solidgoldpig/fb-utils-node')
```

## Methods

### logger

``` js
FBUtils.logger(...args)
```

### clone

Returns a shallow copy of any object

``` js
const clonedObj = FBUtils.clone(obj)
```

Objects can be of any type.

By default, the object copy is shallow.

To create a deep copy, pass 

``` js
const deeplyClonedObj = FBUtils.clone(obj, true)
```

### FBError

Base class for errors

``` js
class MyError extends FBError {}

throw new MyError('An error occurred', {
  data: additionalData
})

```


## Testing

``` shell
npm test
# Test output is in [TAP](https://testanything.org/) format
```

Run unit tests only

``` shell
npm run test:unit
```

Run linting only

``` shell
npm run lint
```

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