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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@qavajs/steps-memory

v2.1.1

Published

steps to perform memory validation

Downloads

1,207

Readme

@qavajs/steps-memory

Step library to work with the memory module

Installation

npm install @qavajs/steps-memory

Configuration

export default {
    require: ['@qavajs/steps-memory/index.js']
}

Steps

Save / Set

Save value to memory

When I save 'value' to memory as 'key'
When I save '$getRandomUser()' to memory as 'user'

Set value (alternative syntax)

When I set 'key' = 'value'

Save result of math expression

Evaluates a JavaScript math expression and saves the result.

When I save result of math expression '{$variable} + 42' as 'result'
When I save result of math expression '{$random()} * 100' as 'result'

Save multiline string

When I save multiline string to memory as 'key':
  """
  some multiline
  string value
  """

Save JSON object

Parses and stores a JSON string as an object.

When I save json to memory as 'key':
  """
  {
      "someKey": "someValue"
  }
  """

Save key-value pairs as object

Builds an object from a two-column DataTable and saves it to memory.

When I save key-value pairs to memory as 'key':
  | someKey      | 42               |
  | someOtherKey | $valueFromMemory |

Validate

Expect value to satisfy validation

Then I expect '$value' equals to '$anotherValue'
Then I expect '$value' does not contain '56'

Expect every element in array to satisfy validation

Then I expect every element in '$arr' array to be above '50'
Then I expect every element in '$arr' array to be above '$expectedValue'

Expect at least N elements in array to satisfy validation

Then I expect at least 1 element in '$arr' array to be above '$expectedValue'
Then I expect at least 2 elements in '$arr' array to be above '50'

Expect array to be sorted

The comparator must be a function stored in memory that follows the Array.prototype.sort contract.

Then I expect '$arr' array to be sorted by '$ascending'

Expect array to match members (DataTable)

Then I expect '$arr' array to have members:
  | uno  |
  | dos  |
  | tres |

Expect value to satisfy validation against at least one value in array

Then I expect '$text' to equal at least one of '$js(["free", "11.99"])'

Or using a DataTable:

Then I expect '$text' to equal at least one of:
  | free  |
  | 11.99 |

Expect value to satisfy validation against all values in array

Then I expect '$text' not to equal all of '$js(["free", "10.00"])'

Or using a DataTable:

Then I expect '$text' not to equal all of:
  | free  |
  | 10.00 |