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 🙏

© 2025 – Pkg Stats / Ryan Hefner

sdfx

v1.0.36

Published

extra sdf commands

Readme

sdfx

Extra SDF commands for your project.

npm version license

Introduction

sdfx is a utility package providing additional commands for SuiteScript Development Framework (SDF) projects. It aims to streamline and enhance your SDF workflow.

Features

  • Additional commands for managing SDF objects and files
  • Simplified import and update processes
  • Branch protection and validation before commits or deployments

Installation

To install sdfx, you need to have Node.js and npm installed on your machine.

  1. Install Husky (if not already installed):

    npm install husky --save-dev
  2. Initialize Husky:

    npx husky init
  3. Install sdfx:

    npm install sdfx

Usage

After installation, you can use the additional SDF commands provided by sdfx. Once sdfx is installed, you should be able to see the new commands in your package.json file. Additionally, branches named "main" or "master" will be automatically protected. This means that every commit to these branches will require a successful validation.

Commands

npm run validate

Executes

suitecloud project:deploy --dryrun

Description

This command runs a dry run deployment to validate your project against the current account. It helps ensure that all configurations and customizations in your SuiteScript Development Framework (SDF) project are correct and compatible with the target account. By performing a dry run, you can identify and address any potential issues before performing an actual deployment, reducing the risk of errors during the deployment process.

npm run deploy

Executes

suitecloud project:deploy --dryrun && suitecloud project:deploy && npm run sdf:create:checkpoint

Description

This command runs a validation, deploys the project, and then creates a "checkpoint." The checkpoint is a commit that includes the name of the account and a timestamp in the following format:

Account: <account_name> | Checkpoint: <timestamp>

This ensures that the project is validated and deployed successfully, and a historical record of the deployment is maintained for reference and rollback purposes.

npm run sdf:files:update

Executes

The import-files script.

Description

This command allows you to update all files in a project at once by executing the import-files script. This ensures that all the latest changes are imported and synchronized with the project files, streamlining the update process.

npm run sdf:objects:update

Executes

The update-objects script.

Description

This command updates all objects in a project at once by executing the update-objects script. It ensures that all the latest changes to objects are imported and synchronized with the project, streamlining the update process.

npm run sdf:update:all

Executes

The update-objects script and then the import-files script.

Description

This command combines the update-objects script and the import-files script to update both objects and files in the project. It ensures that all changes to objects and files are imported and synchronized with the project, streamlining the update process by handling everything together.

npm run sdf:create:checkpoint

Executes

npm run sdf:update:all

and then executes the commit-changes script.

Description

This command first runs npm run sdf:update:all, which updates both objects and files in the project. It then executes the commit-changes script, which creates a commit message containing the name of the account and a timestamp. Additionally, if the current branch is protected (main/master by default), it will run the pre-commit validation to ensure all changes meet the required standards before committing.

npm run sdf:create:branch

Executes

The create-branch script.

Description

This command executes the create-branch script, which automates the process of creating a new branch in the project. The script performs the following steps:

  1. Runs npm run sdf:create:checkpoint to create an initial checkpoint.
  2. Prompts the user to specify the purpose of the branch (either "feature" or "fix").
  3. Prompts the user to provide the name for the new branch.
  4. Creates the new branch using the specified purpose and name.
  5. Prompts the user to select the account from which the new branch will be updated by running suitecloud account:setup -i.
  6. Runs npm run sdf:create:checkpoint again to create a checkpoint for the new branch.

The commit-changes script creates a commit message with the account name and a timestamp. If the current branch is protected (main/master by default), it will run the pre-commit validation.