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

xceling-role

v0.0.40

Published

This is the Role module for use with the xceling-* suite.

Readme

The xceling-* suite is a work new to nodejs, and as such should not be relied on. I am actively working on this, however, and hope to see a useful version available before spring of '17.

This code is based on PHP based CMS I developed and is currently in production use on a good number (the only number I can give is more then 30) websites. These websites include the small personal and some large commercial ones.

If you are interested in helping move this nodejs project forward or would like to see the PHP version contact me at [email protected]

EXCELING-TASK NOTES:

This module contains the code for handling an exceling task. A task defines a permission on the user side that is required to access a given functionality. The set of user permissions is retrieved by accessing the [user instance].Permissions instance getter. The task/pemission is defined by [task instance].Name.

let Task = require('xceling-task')({store: 'mongo'}), tk; Task.getSingleObject({Name: 'User Editor', Flags: Task.FLAG_ACTIVE}, function(err, task) { if(!err) tk = task; else util.log(err); }); -- or -- tk = new (require('xceling-task'))({see Task definition for options});

PUBLIC CLASS METHODS

Task.getAllTaskDataArray(args, fn)

  • Retrieves an array of objects representing the database entries for all task entries matching the input arguments (args).
  • See Task definition for details regarding args and fn.

Task.getSingleObject(args, fn)

  • Retrieves a single Task instance using the input arguments (args) to search the database.
  • See Task definition for details regarding args and fn.

PUBLIC CLASS GETTERS AND SETTERS

Task.FLAG_ACTIVE (getter only)

  • Retrieves the appropriate value for the active flag

Task.Flags (getter only)

  • Retrieves an array of objects representing all the flags publicly available in Task.
  • See Task definition for details of the objects returned.

PUBLIC INSTANCE METHODS (tk = new Task())

tc.delete(fn)

  • Removes this task from the system.
  • See Task definition for details regarding fn.

tc.save(fn)

  • Saves this task's information to the database.
  • See Task definition for details regarding fn.

PUBLIC INSTANCE GETTERS AND SETTERS (tc = new Task())

tc.Properties (getter only)

  • Retrieves a properties object for this instance. This properties object is a copy of, not a reference to, the instance properties object so no changes to this instance's properties can be made with this call.
  • See Task definition for details regarding instance properties.

tc.SanatizedProperties (getter only)

  • Retrieves a 'sanatized' properties object for this instance. A sanatized properties object removes senstive information prior to returning. This sanatized properties object is a copy of, not a reference to, the instance properties object so no changes to this instance's properties can be made with this call.
  • See Task definition for details regarding instance properties and the sanatizing process.

tc.ID (getter only)

  • Retrieves an internal unique ID assigned to this instance. This may, for instance, be a database entry Id.

tc.Name (getter and setter)

  • Retrieves or sets the name for this instance.
  • See Task definition for details regarding instance name.

tc.Description (getter and setter)

  • Retrieves or sets the description for this instance.
  • See Task definition for details regarding instance description.

tc.Flags (getter and setter)

  • Retrieves or sets the flags for this instance.
  • See Task definition for details regarding instance flags.