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

@servicenow/sdk

v1.0.6

Published

ServiceNow SDK CLI

Downloads

77

Readme

ServiceNow SDK

Use the ServiceNow software development kit (SDK) to add JavaScript modules and third-party libraries to applications locally and upload changes to an instance of the Now Platform.

Overview

With the ServiceNow SDK, developers can create and modify scoped applications with custom modules and third-party libraries in Visual Studio Code and deploy those applications to a non-production instance on the Washington DC release. Writing ServiceNow applications outside of a ServiceNow instance enables you to use industry-standard development practices and familiar tools and catch errors at build-time rather than at run-time only.

For more information see the SDK Overview documentation or the CLI Overview

Installation

Install the ServiceNow software development kit (SDK) locally using Node Package Manager (npm).

Before you begin

Your system must meet the following requirements to use npm to install the SDK:

  • Node.js v16.16.0 or later
  • npm v8.11.0 or later

To install or upgrade Node.js or npm, see the installation instructions on the npm website.

Procedure

  1. Open a command-line tool on your system.
  2. Verify that your system meets the requirements. a. Enter node –v​ to check if you have Node.js installed and which version. b. Enter npm –v​ to check if you have npm installed and which version.
  3. Enter the following command to install the SDK:
npm install --global @servicenow/sdk

Usage

Authentication

Authenticate with a ServiceNow instance using a user account with an admin role.

now-sdk auth save default

View credentials saved in the device keychain or credential manager on your system.

now-sdk auth list

Creating an app

Create a new scoped application, optionally including a sample table.

Note: Replace {vendorprefix} with your organization's unique scope prefix.

now-sdk create sdk_demo x_{vendorprefix}_demo --sampleTable

Building code changes

Compile source files and generate a deployable package. Third-party library dependencies are converted into XML files that can be installed with the application.

now-sdk build

Deploying app updates

Deploy an application to an instance. Before using the deploy command, you must use the build command to generate a deployable package.

now-sdk deploy

Synchronizing changes from the instance

Download application metadata from an instance and update the metadata XML files in your local application to match.

now-sdk fetch

What to do next

Use the ServiceNow SDK to create a scoped application or convert an existing application for use with the SDK. For more information, see Create or convert an application with the ServiceNow SDK.