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

@baravak/risloo-profile-cli

v4.15.1

Published

**Risloo Profile CLI** is a library for creating profiles, reports and sheets for *psychological* samples.

Downloads

90

Readme

Introduction

Risloo Profile CLI is a library for creating profiles, reports and sheets for psychological samples.

Installation

In order to install the package, you can write the code below in your terminal:

npm install -g risloo-profile-cli

How Does It Work?

This library is equipped with a CLI in order to create the profiles, reports and sheets you need for your samples. The structure of the CLI is as follows:

Main Structure

risloo [command]

Commands

extract|D <sampleName> [sampleOutputs...] [options]
gift|G [options]
test|T [options]

extract Command

Using this command, you can draw extract profiles, reports and sheets out of psychological samples.

Arguments:
  sampleName                          Name of the Sample
  sampleOutputs                       Outputs To Be Extracted Out of Sample, Choices: {profile, report, sheet}, Default: ["profile"]

Options:
  -p, --profile-variant <variant>     Variant of the Profile, Choices: {both, raw, with-sidebar}, Default: both
  -i, --input-type <type>             Type of Input, Choices: {local, remote, raw-json, stdin}, Default: local
  -d, --input-data <data>             Input Data
  -o, --output-type <type>            Type of Output, Choices: {local, remote}, Default: local
  -a, --output-address <address>      Output Address
  -n, --name <name>                   Name of Output Profile (Required in "stdin" Input Type)
  -m, --measure                       Additional Feature for Measuring Dimensions and Distances, Default: false
  -b, --benchmark                     Time Benchmarking of Command, Default: false

gift Command

Using this command, you can create special gifts for users and customers.

Options:
  -s, --gift-status <status>          Gift Status, Choices: {both, open, expired}, Default: both
  -i, --input-type <type>             Type of Input, Choices: {raw-json, local}, Default: raw-json
  -d, --input-data <data>             Input Data
  -a, --output-address <address>      Output Address
  -b, --benchmark                     Time Benchmarking of Command, Default: false

CLI Status Codes

The Status Codes after entering a command is as follows:

Profiles Status:

| Status Code | Label | Description | | ----------- | ----- | ----------- | | 0 | Success | Profiles Successfully Created! | | 1 | Not Found | Input Data File Does Not Exist! | | 2 | Profile JS Error | Error in Instantiating the Profile Object | | 3 | Invalid Name | Profile Name Is Not Valid | | 4 | Not Found | Profile Template File Does Not Exist | | 5 | General Error | Something Went Wrong In The Input Data File! | | 6 | General Error | Something Went Wrong In The JS Files! |

Gifts Status:

| Status Code | Label | Description | | ----------- | ----- | ----------- | | 0 | Success | Gifts Successfully Created! |

Naming Variables Stratrgy

This part is of great importance if you are going to develop and change the source code. We tried much to make code neat and clean, hence commented nearly completely, so that you on the role of developer are able to understand the code rationale as soon as possible!!

The rules taken into account in the time of creating the variables are:

  1. items is the general term for array of data elements to be drawn inside the profile. An item might contain mark, label, numerical (and maybe non-numerical) values required for drawing (e.g. width, angle, point coordinate, color, opacity and ...).
  2. If there is the total data element and it has enough differences from other elements (so-called items), we name it raw which is an object with properties identical to any element of items.
  3. If there is any scale or periodic graduation in the profile, we name it ticks which is an array including objects with tick number, numerical parameter required for drawing (e.g. coordinate, angle, width, height or ...).
  4. The s located at the end of a variable name denotes the array nature of that variable and there is no need for the matter to be emphasized with the suffix Arr.
  5. Structure for the Dataset Score: dataset.score = [{label: {eng, ...others}, mark}]