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

@microsoft/bc-replay

v0.1.119

Published

Tooling for using Business Central Page Scripting feature in automation.

Readme

BC replay

BC replay is an npm command used to replay Business Central recordings.

Requirements

The following things must be available to use this command:

  • NodeJs minimum version 16.14.0
  • PowerShell version 7+

Getting started

Create a new folder and cd to it.

Add @microsoft/bc-replay and install playwright

npm i @microsoft/bc-replay --save

Now add a folder to store some recordings, e.g. mkdir recordings and add some recording .yml files.

Then you can run any tests added to the recordings folder against Business Central web client instance:

npx replay .\recordings\*.yml -StartAddress http://localhost:8080/

Parameters

npx replay
      [-Tests] <String>
      -StartAddress <String>
      [-Authentication Windows|AAD|UserPassword]
      [-UserNameKey <String>]
      [-PasswordKey <String>]
      [-MultiFactorType None|TOTP|Certificate]
      [-MultiFactorSecretKey <String>]
      [-Headed]
      [-UseServerReplay]
      [-ResultDir <String>]

-Tests

File glob pattern to select the tests recordings to run

-StartAddress

The url to the deployed web client.

-Authentication

The authentication to use against the web client. One of Windows, AAD, UserPassword. Windows is the default. Multi-factor authentication is available only when set to AAD.

-UserNameKey & -PasswordKey

When -Authentication is set to AAD or UserPassword then a user name and password must be given. These must be transferred as environment variables and -UserNameKey and -PasswordKey are used to specify which environment variables contains these.

-MultiFactorType

Sets the multi-factor authentication mechanism. Valid options are None, TOTP, and Certificate. Defaults to None. This parameter can only be used together with -Authentication AAD. When -UseServerReplay is present, this value must remain None.

-MultiFactorSecretKey

The environment variable that stores the MFA secret referenced by -MultiFactorType. The environment variable must be set before invoking the command.

  • For TOTP this must be the TOTP secret key.
  • For Certificate this must hold the Base64-encoded PFX certificate.

-Headed

Will show the test running in the browsers.

-ResultDir

The directory to write the test results.