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

@kriscodeman/clarity-cli

v1.2.5

Published

Because we got better πŸ’© to do! πŸƒπŸ»πŸ’¨

Downloads

11

Readme

Clarity Timesheet Cli ⏰

Because we got better πŸ’© to do! πŸƒπŸ»πŸ’¨

What is this?

This is automation for the Clarity (by Broadcom) Timesheet platform.

It sucks, yea, I know.

And if you're using it, and maybe you're also salary, it might feel pretty pointless to update a timesheet every week when you only put in the 40 hours you are supposed to.

Give a dev a monotonous task, and they'll automate it, right?

Clarity is pretty old, and it's a pretty closed platform.

So this cli just uses selenium-webdriver to basically write an automated test against Clarity.

It opens a browser to your Clarity url, uses your creds to login, navs to the timesheet screen, populates it, finds the first row for hours and fills in 8 hours for M-F.

Usage

It's as easy as clarity.

But maybe you want to make it as repeatable and automated as possible. Run it with the optional params to streamline it further.

For example, here's running clarity-cli with chrome, using creds for john, with clarity.mycompany.com, using a dry run so that we can see what it does, and it doesn't actually submit:

clarity -c -u john -w clarity.mycompany.com -d

Prerequisites

  1. Be sure to have nodejs installed
  2. You'll want to have admin access to the machine your on to run the automation
  3. You'll want to have the webdriver you'd like to use installed on your path for your machine. Follow setup instructions for selenium-webdriver javascript here: https://github.com/SeleniumHQ/selenium/tree/trunk/javascript/node/selenium-webdriver#readme

Installation

Pretty easy depending on how you'd like to do it. You can clone this repo and compile it yourself, or you can do a npm i and call it good.

Install from cloning the repo

  1. clone this git repo
  2. open a terminal at root of this project
  3. run npm i
  4. run npm run create
  5. run npm run local
  6. if you need to reinstall, or uninstall, you're gonna need to run npm uninstall clarity using this installation method

Install from npm

  1. run npm i @kriscodeman/clarity-cli -g

Running this cli

After installation, it's pretty easy.

Just run clarity from your terminal. It'll guide you through the rest if you're missing any parameters.

Run clarity --help for the help output.

Optional Params

  1. Your browsertype (which selenium webdriver do you have set up on your machine? select from chrome or safari or firefox)
  2. -w, --website <website>: Your orgs Clarity Timesheet platform url
  3. -u, --userName <userName>: Your org username
  4. -d, --dryRun: Makes sure the automation doesn't actually submit the timesheet. Pretty good idea to use this if you're testing or just curious.
  5. -h, --headless: Makes the automation run headlessly, so you won't see anything other than the cli output. This means the browser won't open up so you can't watch the magic. But maybe you trust it so much you're cool with it running silently quickly in the background.
  6. -i, --installHelp: Outputs some help info. This readme should be your source for additional help, but tossed this in just cuz.
  7. -H, --hours <number>: change the default hours per day
  8. -M, --monday <number>: change the hours for monday
  9. -T, --tuesday <number>: change the hours for tuesday
  10. -W, --wednesday <number>: change the hours for wednesday
  11. -T, --thursday <number>: change the hours for thursday
  12. -F, --friday <number>: change the hours for friday