<commit_before>spromise [![Build Status](https://travis-ci.org/MiguelCastillo/spromise.png?branch=master)](https://travis-ci.org/MiguelCastillo/spromise)
=========

spromise (Small Promise), is an implementation of the promise <a href="https://promisesaplus.com/">A+ spec</a>.  It is designed to be lightweight, performant, and per spec, interoperable with other promise implementations such as jQuery's <a href="http://api.jquery.com/category/deferred-object/">deferred</a>.
<commit_msg>Add Table of Contents using marked-toc.<commit_after>spromise [![Build Status](https://travis-ci.org/MiguelCastillo/spromise.png?branch=master)](https://travis-ci.org/MiguelCastillo/spromise)
=========

spromise (Small Promise), is an implementation of the promise <a href="https://promisesaplus.com/">A+ spec</a>.  It is designed to be lightweight, performant, and per spec, interoperable with other promise implementations such as jQuery's <a href="http://api.jquery.com/category/deferred-object/">deferred</a>.


* [API](#api)
  * [Static methods](#static-methods)
    * [spromise as a constructor](#spromise-as-a-constructor)
    * [spromise.defer](#spromisedefer)
    * [spromise.resolve](#spromiseresolve)
    * [spromise.reject](#spromisereject)
    * [spromise.when](#spromisewhen)
    * [spromise.all](#spromiseall)
  * [Instance methods](#instance-methods)
    * [then](#then)
    * [done](#done)
    * [fail and catch](#fail-and-catch)
    * [always](#always)
    * [resolve](#resolve)
    * [reject](#reject)
    * [delay](#delay)
    * [state](#state)
    * [isPending](#ispending)
    * [isResolved](#isresolved)
    * [isRejected](#isrejected)
  * [Instance Properties](#instance-properties)
    * [promise](#promise)
* [Install](#install)
    * [bower](#bower)
    * [npm](#npm)
* [Downloads](#downloads)
* [Build](#build)
* [Tests](#tests)
    * [Unit tests](#unit-tests)
    * [Compliance unit tests:](#compliance-unit-tests)
* [Compliance notes](#compliance-notes)

<!-- toc stop -->

{'fraction_non_alphanumeric': 0.18533400301356104, 'fraction_numerical': 0.0, 'mean_word_length': 4.893491124260355, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '389135', 'n_tokens_mistral': 690, 'n_tokens_neox': 650, 'n_words': 120}