open-index/open-npm huggingface dataset:
npm package: @maxtruxa/http-error
Description: Extensible HTTP error class for Node.js
Author: Max Truxa
Latest version: 0.1.2
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @maxtruxa/http-error

[![npm Version][npm-image]][npm-url]
[![npm Downloads][downloads-image]][downloads-url]
[![Test Status][travis-image]][travis-url]
[![Test Coverage][coveralls-image]][coveralls-url]
[![MIT Licensed][license-image]][license-url]

`HttpError`.

**This README needs some love.**

```js
const HttpError = require('@maxtruxa/http-error');

throw new HttpError(404, {url: 'https://example.com/test'});
```

## Installing

```bash
npm install @maxtruxa/http-error
```

## Features

## Usage

### Direct Usage

```js
const HttpError = require('@maxtruxa/http-error');

// HttpError(code[, message][, properties])
// HttpError(properties)

throw new HttpError(404);
throw new HttpError(404, 'some message');
throw new HttpError(404, {additional: 'information'});
throw new HttpError(404, 'some message', {additional: 'information'});
throw new HttpError({code: 404, additional: 'information'});
```

### Inheriting

## API

## Tests

To run the test suite, install dependencies, then run `npm test`:

```bash
npm install
npm test
```

Coverage reports are generated by running `npm run coverage`.
Linting is done with `npm run lint`.


[npm-image]: https://cdn.maxtruxa.com/shields.io/npm/v/@maxtruxa/http-error.svg
[npm-url]: https://npmjs.org/package/@maxtruxa/http-error
[downloads-image]: https://cdn.maxtruxa.com/shields.io/npm/dm/@maxtruxa/http-error.svg
[downloads-url]: https://npmjs.org/package/@maxtruxa/http-error
[travis-image]: https://cdn.maxtruxa.com/shields.io/travis/maxtruxa/http-error/master.svg
[travis-url]: https://travis-ci.org/maxtruxa/http-error
[coveralls-image]: https://cdn.maxtruxa.com/shields.io/coveralls/github/maxtruxa/http-error/master.svg
[coveralls-url]: https://coveralls.io/github/maxtruxa/http-error?branch=master
[license-image]: https://cdn.maxtruxa.com/shields.io/badge/license-MIT-blue.svg
[license-url]: https://raw.githubusercontent.com/maxtruxa/http-error/master/LICENSE
npm package: @maxts/anchor
Description: High-level validation library for Node.js (used in Waterline)
Author: Mike McNeil
Latest version: 1.4.1

# anchor

Anchor is a JavaScript library that lets you enforce [high-level validation rules](https://sailsjs.com/documentation/concepts/models-and-orm/validations).  It is used in [Waterline and Sails](https://sailsjs.com/features) to complement the type safety imposed by [rttc](https://npmjs.com/package/rttc).

(Built on top of the great work with https://www.npmjs.com/package/validator)

## Usage


#### Documentation

The up-to-date documentation for high-level anchor validation rules is maintained on the [Sails framework website](http://sailsjs.com).

You can find a detailed reference of all validation rules under [Concepts > Models & ORM > Validations](http://sailsjs.com/documentation/concepts/models-and-orm/validations).

> For more details on standalone usage, see the source code in this repo.

<!--
  #### Standalone usage

  For the browser:

  ```html
  <script type='text/javscript' src="/js/anchor.js"></script>
  ```

  For Node.js:

  ```bash
  npm install anchor
  ```

  ```javascript
  var anchor = require('anchor');
  ```
-->

## Help

Check out the recommended [community support options](http://sailsjs.com/support) for tutorials and other resources.  If you have a specific question, or just need to clarify how something works, [ask for help](https://gitter.im/balderdashy/sails) or reach out to the core team [directly](http://sailsjs.com/flagship).

You can keep up to date with security patches, the Sails/Waterline release schedule, new database adapters, and events in your area by following us [@sailsjs](https://twitter.com/sailsjs) and [@waterlineorm](https://twitter.com/waterlineorm) on Twitter.

## Bugs &nbsp; [![NPM version](https://badge.fury.io/js/anchor.svg)](http://npmjs.com/package/anchor)
To report a bug, [click here](http://sailsjs.com/bugs).

## Contribute &nbsp; [![Build Status](https://travis-ci.org/sailshq/anchor.png?branch=master)](https://travis-ci.org/sailshq/anchor)
Please observe the guidelines and conventions laid out in our [contribution guide](http://sailsjs.com/documentation/contributing) when opening issues or submitting pull requests.

#### Tests
All tests are written with [mocha](https://mochajs.org/) and should be run with [npm](https://www.npmjs.com/):

``` bash
  $ npm test
```


## License

Copyright 2012-present, [Mike McNeil](https://twitter.com/mikermcneil)

This core package, like the rest of the [Sails framework](http://sailsjs.com), is free and open-source under the [MIT License](http://sailsjs.com/license).

[![image_squidhome@2x.png](http://sailsjs.com/images/bkgd_squiddy.png)](http://sailsjs.com/about)
npm package: @maxts/waterline-adapter-tests
Description: Integration tests for waterline adapters
Author: Cody Stoltman
Latest version: 1.0.3

Waterline Adapter Tests
==========================
[![Build Status](https://travis-ci.org/maxts/waterline-adapter-tests.svg?branch=master)](https://travis-ci.org/maxts/waterline-adapter-tests)
[![npm version](https://badge.fury.io/js/waterline-adapter-tests.svg)](http://badge.fury.io/js/waterline-adapter-tests)
[![Dependency Status](https://david-dm.org/maxts/waterline-adapter-tests.svg)](https://david-dm.org/maxts/waterline-adapter-tests)

A set of integration tests that can be included in your Waterline Adapter module and used to test
your adapter against the current Waterline API.

## Adapter Interface Specification

+ [Reference](https://github.com/maxts/sails-docs/blob/master/contributing/adapter-specification.md)
+ [Philosophy & Motivations](https://github.com/maxts/sails-docs/blob/master/contributing/intro-to-custom-adapters.md)


## Usage

#### Write a test runner

> i.e. `runner.js`

```javascript
/**
 * Test runner dependencies
 */
var mocha = require('mocha');
var TestRunner = require('waterline-adapter-tests');


/**
 * Integration Test Runner
 *
 * Uses the `waterline-adapter-tests` module to
 * run mocha tests against the specified interfaces
 * of the currently-implemented Waterline adapter API.
 */
new TestRunner({

	// Load the adapter module.
	adapter: require('./relative/path/to/your/adapter'),

	// Default adapter config to use.
	config: {
		schema: false
	},

	// The set of adapter interfaces to test against.
	interfaces: ['semantic', 'queryable']
});
```

#### Run the tests

```sh
$ node runner.js
```

## MIT License

See LICENSE.md.
npm package: @maxts/waterline-utils
Description: Various utilities for working with Waterline queries and adapters.
Author: Maxim Tsarenko
Latest version: 1.4.5

# Waterline Utils

A set of utilities for Waterline adapter and driver authors to use. These utilities can be used to make dealing
with queries and joins much easier.

To get an idea of what is included, browse the `lib` folder.

## Bugs &nbsp; [![NPM version](https://badge.fury.io/js/@maxts%2Fwaterline-utils.svg)](http://npmjs.com/package/@maxts/waterline-utils)

To report a bug, [click here](http://sailsjs.com/bugs).

> This is a built-in module used in core database adapters in Sails and Waterline.

## Contributing &nbsp; [![Build Status](https://app.travis-ci.com/maxts/waterline-utils.svg?branch=master)](https://app.travis-ci.com/maxts/waterline-utils)

Please observe the guidelines and conventions laid out in the [Sails project contribution guide](http://sailsjs.com/documentation/contributing) when opening issues or submitting pull requests.

[![NPM package info](https://nodei.co/npm/@maxts/waterline-utils.png?downloads=true)](http://npmjs.com/package/@maxts/waterline-utils)

## License

This core package, like the rest of the [Sails framework](http://sailsjs.com) is free and open-source under the [MIT License](http://sailsjs.com/license).