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

uiconsult

v1.0.2

Published

glo2 project in utt

Downloads

6

Readme

UIConsult

GL02 [email protected]

Recommanded IDEs

  • vscode
  • webstorm

Development

  • install npm or yarn (yarn is better), nvm
  • nvm use
  • clone this project
  • svn checkout --username=USERNAME svn+ssh://[email protected]/p/sky-gl02/code/ sky-gl02-code
  • yarn OR npm install
  • develop and commit

Dependencies

Learn these cool packages so that you can use it in this project

  • caporal
  • cli-table3
  • vega, vega-lite, vega-embed
  • walkdir
  • chalk
  • dayjs
  • mkdirp
  • object-path
  • ora

And you need also to learn mocha and chai so that you can write unit test! We won't use nodeunit cause it's no more maintained.

Caveats

  1. To export en PNG, you need to have node-gyp installed which requires python2.7, g++ OR VScode build tool...

  2. You need to write unit test for most functions you've added

  3. Install editorconfig plugin for your IDE to make sure that we have a common basic code format

  4. vega requires some system dependencies like libcairo2-dev libjpeg-dev libgif-dev on ubuntu, you need to install them by yourself. On ubuntu, you can install them bu running:

    sudo apt install libcairo2-dev libjpeg-dev libgif-dev

Build && Compile && Test

compile to generate an executable

npm run build
# it will generate executables for linux, win and  macos. See the executable in ./bin

unit test

npm run test
# now there is no test

Usage

  1. Load emails of specific period
src/index.js lms \
    /path/to/data \ 
    --date-from="[dd/][mm/]yyyy" \
    --date-to="[dd/][mm/]yyyy"
  1. Show exchanged emails of an employee
src/index.js nms \
    /path/to/data \
    <employee's name  | employee's email address> \ 
    --date-from="[dd/][mm/]yyyy" \
    --date-to="[dd/][mm/]yyyy"
  1. Show busy days of an employee
src/index.js bsd \
    /path/to/data <employee's name | employee's email address> \
    --date-from="[dd/][mm/]yyyy" \
    --date-to="[dd/][mm/]yyyy"
  1. Show the top 10 contacts of an employee
src/index.js tpc \
    /path/to/data \
    <employee's name | employee's email address> \
    --date-from="[dd/][mm/]yyyy" \
    --date-to="[dd/][mm/]yyyy"
  1. Show the top 10 words used by an employee in his email subject
src/index.js tpw \ 
    /path/to/data <employee's name | employee's email address> \
    --date-from="[dd/][mm/]yyyy" \
    --date-to="[dd/][mm/]yyyy"
  1. Visualize sent and received emails of an employee
src/index.js emp \
    /path/to/data <employee's name | employee's email address> \
    --date-from="[dd/][mm/]yyyy" \
    --date-to="[dd/][mm/]yyyy"
  1. Visualize sent emails of all collaborators
src/index.js nbmc \
    /path/to/data \
    --file="/path/to/save/svg/or/png" \
    --date-from="[dd/][mm/]yyyy" \
    --date-to="[dd/][mm/]yyyy"
  1. Visualize employee's frequency of sending emails
src/index.js fmu \
    /path/to/data \
    --file="/path/to/save/svg/or/png" \
    --employee="<employee's name|employee's email address>" \
    --date-from="[dd/][mm/]yyyy" \
    --date-to="[dd/][mm/]yyyy"
  1. Search emails by name of employee or email's content and subject
src/index.js sbc \
    /path/to/data \
    --employee="<employee's name|employee's email address>" \
    --date-from="[dd/][mm/]yyyy" \
    --date-to="[dd/][mm/]yyyy" \
    --subject="text" \
    --content="text"

Build && Compile && Test

compile

npm run build

# it will generate executables for linux, win and  macos. See the executable in ./bin

cross-system compile

TARGET_OS=win npm run build
TARGET_OS=linux npm run build
TARGET_OS=osx npm run build

unit test

npm run test