# spec-js

> Creates fast, prototypicaly inherited, super-calling constructors

Latest version **1.0.0** (published 2014-10-07) · 0 weekly downloads

## Install

```sh
npm install spec-js
pnpm add spec-js
yarn add spec-js
bun add spec-js
```

## 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 | 2014-10-07 |
| First published | 2013-08-09 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kory Nunn |
| Maintainers | korynunn |

## Links

- npm: https://www.npmjs.com/package/spec-js
- Repository: https://github.com/KoryNunn/spec
- Issues: http://github.com/KoryNunn/spec/issues
- npm.io page: https://npm.io/package/spec-js

## Recent versions

- 1.0.0 (latest) — 2014-10-07
- 0.0.3 — 2014-02-28
- 0.0.2 — 2014-02-28
- 0.0.1 — 2013-08-09

## README

Spec
====


# What #

A fast, prototypicaly inherited, super-calling constructor-maker

# Why? #

Makes protypical inheritance a bit easier.

# Usage #

require()

    var createSpec = require('spec-js');

Make a constructor

    function Shape(settings){
        this.sides = settings.sides;
    }

Overwrite the identifier with a specd version

    Shape = createSpec(Shape);

This creates a specd version of Shape that inherrits from Object.

To inherit from this constructor:

    function Square(settings){
        this.sides = 4;
        this.sideLength = settings.sideLength;
    }

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