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

cloudelements-updater

v0.1.0

Published

An automatic updater for the cloud elements application.

Readme

Cloud Elements CMTool

This is the Cloud Elements CM tool, which is used to connect with and integrate the various CM applications used by Cloud Elements, such as Git and Pivotal Tracker.

Install (or update) it globally:

$ npm install -g cloudelements-cmtool
$ npm update -g cloudelements-cmtool

You may also need to set some environment variables: (you could put these in your ~/.bash_profile or other startup script)

$ export CMTOOL_GIT_DIR=/path/to/git/repo
$ export CMTOOL_PIVOTAL_TOKEN=mypivotaltoken12345abcde
$ export CMTOOL_DB_URL=postgres://user:pass@localhost:5432/dbname
$ export CMTOOL_CONFIG_HOME=/path/to/cmtool_home

Once these are sorted, you can use the cmtool from the command line:

$ cmtool <command> [parameters]

For example,

$ cmtool release-notes 1.10 1.11
$ cmtool qa-label "release-1.10" "qa environment"
$ cmtool get-props
$ cmtool put-props
$ cmtool one-shot uptime snap
$ cmtool delete-user [email protected]

Or, you can use it in your javascript code:

var cmtool = require('cloudelements-cmtool'),
    git = new cmtool.Git,
    pivotal = new cmtool.Pivotal('my-pivotal-token'),
    cart = new cmtool.Cart(pivotal, git);

process.chdir('path/to/git/repo');

cart.changeLog('1.10', '1.11', function(err, stories) {
  console.log("err", err);
  console.log("stories", stories);
});

git.log('patch-1.10.6', function(err, entry, done) {
  if (err != null) {
    console.log("err", err);
  } else if (done) {
    console.log("done");
  } else {
    console.log("found commit with hash", entry.hash);
  }
});

var cmdStep = cmtool.homie.cmdStep,
    task = {
  name: 'one-shot',
  usesConn: true,
  ccb: function(err) {
    if (err != null) {
      console.warn("Connection error: ", err);
    }
  },
  steps: [cmdStep('command', 'uptime')]
};
cmtool.homie.runTaskOn(task, 'all');

var dbUrl = 'postgres://user:pass@localhost:5432/dbname',
    dbtool = new cmtool.Dbtool(dbUrl),
    email = '[email protected]';

dbtool.deleteUser(email, function(err){
  if (err != null) {
    say("err: ", err);
  } else {
    say("Delete " + email + " complete");
  }
});