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

system-restore

v2.0.10

Published

Create Windows System Restore Points using NodeJS.

Readme

node-system-restore

Create a restore point on your Windows machine using NodeJS.

About the Project

This project provides a scriptable alternative to PowerShell for creating restore points on Windows machines, implemented in Node.js.

Getting Started

If you are interested in contributing, please clone the repository and have a look around. Constructive criticism is always desired, and meaningful contributions are greatly appreciated.

Brief Overview of npm Scripts

{
  "clean": "rimraf coverage dist tsconfig.release.tsbuildinfo",
  "build": "tsc -p tsconfig.release.json",
  "watch": "tsc -w -p tsconfig.release.json",
  "lint": "eslint .",
  "format": "prettier . --write",
  "pretest": "npm run lint",
  "test": "npm run test-only",
  "test-only": "jest --coverage",
  "test:watch": "jest --watch"
}
  1. clean - Clear directories that have artifacts.
  2. build - Compile the TypeScript code.
  3. watch - Watch *.ts files for changes, and recompile.
  4. lint - Lint the TypeScript source.
  5. format - Format the codebase using Prettier.
  6. pretest - Lints the TypeScript source.
  7. test - Runs all unit tests.
  8. test-only - Runs all unit tests.
  9. test:watch - Watches all unit tests.

How to Use system-restore as a Module

The system-restore module exports a single function called createRestorePoint. You can import it using the following example:

const { createRestorePoint } = require('system-restore');

createRestorePoint Information

/**
 * Creates a system restore point.
 *
 * @param restorePointName The name of the restore point.
 * @param restorePointType The type of restore point to create.
 */
createRestorePoint(restorePointName: string, restorePointType: string): Promise<boolean>

Values for Restore Point Type

  • APPLICATION_INSTALL
  • APPLICATION_UNINSTALL
  • DEVICE_DRIVER_INSTALL
  • MODIFY_SETTINGS
  • CANCELLED_OPERATION

Using the CLI

You can use the CLI directly with npx:

npx system-restore --restorePointName="Hello, world!" --restorePointType=APPLICATION_INSTALL

CLI Arguments

  • --restorePointName {String} The name of the restore point.
  • --restorePointType {String} The type of restore point to create.

Values for Restore Point Type

  • APPLICATION_INSTALL
  • APPLICATION_UNINSTALL
  • DEVICE_DRIVER_INSTALL
  • MODIFY_SETTINGS
  • CANCELLED_OPERATION

Possible Caveats

You may need to run your scripts with Administrator privileges to get your JavaScript implementation to work. If you get an error, it's possible that you need to run the script using elevated permissions.

Questions/Comments/Concerns

Please use the issue tracker to ask any questions, or to opine about something regarding the project.