npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

decision-table-model

v1.1.4

Published

[![npm](https://img.shields.io/npm/v/.svg)](https://www.npmjs.com/package/) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com//) [![Build Status](https://secure.travis-ci.org

Downloads

4

Readme

npm semantic-release Build Status bithound codecov.io Coverage Status Code Climate Known Vulnerabilities GitHub Issues Stories in Ready Dependency Status devDependency Status docs downloads Commitizen friendly

=====

API Reference

getHash() ⇒ string

Creates the MD5 hash for this object

Kind: global function
Returns: string - The hash value as string

getHashValue() ⇒ number

Creates the MD5 hash for this object

Kind: global function
Returns: number - The hash value as number

setAllAttributes(attributeValues)

Set all the given attributes in one go. Only the attributes defined for this class will be set

Kind: global function

| Param | Type | Description | | --- | --- | --- | | attributeValues | object | The attributes values to set |

_setParent(propertyName, object)

Set a new parent for this object

Kind: global function

| Param | Type | Description | | --- | --- | --- | | propertyName | string | The name of the reference this object was added to | | object | object | The object this object was added to a reference. If the new object is undefined It means that the parent should be deleted |

_getParent() ⇒ object

Returns the parent of this object. An parent only exists if this object is a conained object.

Kind: global function
Returns: object - The parent of this object

_removeFromParent(propertyName)

Removes this object from its parent, if it has one

Kind: global function

| Param | Type | Description | | --- | --- | --- | | propertyName | string | The name of the reference this object was added to |

_addOpositeReference(propertyName, sourceElement)

Add a reference for this object. If this object is added to an other object, the other object references this. This stores the oposite of a normal attribute.

Kind: global function

| Param | Type | Description | | --- | --- | --- | | propertyName | string | The name of the reference this object was added to | | sourceElement | object | The element this object was added. |

_removeOpositeReference(propertyName, sourceElement)

Referenced objects store all the incomming references to this object. This method will remove an object from this references.

Kind: global function

| Param | Type | Description | | --- | --- | --- | | propertyName | string | The name of the reference this object was added to | | sourceElement | object | The object to be deleted from the incomming references |

getHashValue() ⇒ number

Returns the hash value of this list

Kind: global function
Returns: number - The claculated hashValue as number

_handleAdd()

If an element is added or removed some

Kind: global function

_getElementForObject(element) ⇒ object

Internal helper method. It will return the real object. If the id is given it will retrive the original object for the ID first. Then it will proof that the object is of the given type.

Kind: global function
Returns: object - The real object if it could be found

| Param | Type | Description | | --- | --- | --- | | element | object | The element or element id to be prooved. |

has(element) ⇒ boolean

Returns a boolean value indicating if this list contains the given element or not

Kind: global function
Returns: boolean - True if the element exists in the list

| Param | Type | Description | | --- | --- | --- | | element | object | The element to be searched in the list |

size() ⇒ number

Returns the ammount of stored elements

Kind: global function
Returns: number - The size of the stored elements

add(element)

Adds a new element

Kind: global function

| Param | Type | Description | | --- | --- | --- | | element | object | The element to be added |

remove(element)

Removes the given element from the list if it exists. If the list is not unique it will remove the last one.

Kind: global function

| Param | Type | Description | | --- | --- | --- | | element | object | The element to be removed |

forEach(callback)

The forEach() method executes a provided function once per each value in the Set object, in insertion order.

Kind: global function

| Param | Type | Description | | --- | --- | --- | | callback | function | Function to execute for each element. |

clear()

clears the list of stored elements

Kind: global function


install

With npm do:

npm install 

license

BSD-2-Clause