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

psychic-octo-robot

v0.3.1

Published

psychic-octo-robot ==================

Downloads

1

Readme

psychic-octo-robot

This project is a collection of modules that brings the power of git to 
structured documents by students Ian Hallam Devon Timaeus and Sydney 
Satchwill at Rose-Hulman Institute of Technology under the leadership of
Associate Professor Sriram Mohan in addition to Wes Winham and Kyle Gibson
of PolicyStat.
 
Currently HTML is the target language for development, with the posibility
of later including XML, DOCX, and other structure document formats.

Usage: psychic-octo-robot [options] [command]

First, create a por local repo

init <file> <outputPath> <repoName>  Initialize a Repository for the given file

And change it back into html

write <directory> <outputFile>       Convert a Repository into an HTML file

Make a new revision of the local repo given a new document

commit <file to make the new revision> <path to repo> <commit message>

Options

-h, --help         output usage information
-V, --version      output the version number
-v, --versionFull  Print out all the version info for the CLI
-l, --libraries    Print out the versions of the libraries used

Upcoming Features

- commit
- pretty printing for HTML output

Version History

  • 0.0.1
    • Basic command line tool to accept inputs
    • Help info for usage
    • Added libraries
  • 0.0.2
    • Parsing of HTML files into DOM-like structure
    • Filtering of information needed for creating directory structure
    • Adding custom IDs to keep track of tags for tracking changes in sections
  • 0.1.0
    • init feature: Creation of file directory structure mean to represent a structured document
    • Naming for each file/directory from random byte array for uniqueness
  • 0.1.1
    • Parsing of File structure back into Javascript object format
    • Unit tests for init feature
  • 0.1.2
    • Generation of HTML through reconstruction using Javascript object
    • Command-line command for this feature
  • 0.2.0
    • write feature: Create an HTML file from the directory structure with IDs inserted into HTML
    • Unit tests for write feature
  • 0.2.1
    • Pre tag whitespace preservation
    • Transition away from js-git to Git shell
    • Setup & teardown for directory during commit
  • 0.2.2
    • Make Git repository commit during commit
    • Edge cases for write & init feature
  • 0.3.0
    • commit feature: Given new file and a path to a repository directory, create a new version of the document with a commit message
  • 0.3.1
    • IN PROGRESS

Disclaimers:

  • Tags will contain por-id attributes for tracking purposes.
  • Modifying por-ids can result in unexpected behavior
  • Some formatting may not be preserved. With each milestone we are working to minimize this.
  • If the html is missing starting or ending tags when used in any operations then there are no guarantee that the interpretation of the HTML will be what the author intended.
  • To minimize this effect, be sure to include closing tags for each open tag, and vice versa.

Libraries Used

  • parse5
  • html
  • commander.js
  • mocha
  • deasync

Development environment

About Docker:

Docker is an OS agnostic way to create an identical development environment for every member 
on a software team. The following steps will get you set up:

1. Download Docker:

(in ubuntu)

```curl -sSL https://get.docker.io/ubuntu/ | sudo sh```

2. Use Docker:

(in ubuntu)

cd /psycho-octo-robot
sudo docker build -t="psycho-octo-robot" .
sudo docker run -i -t psycho-octo-robot

or to run in the background:

sudo docker run -d psycho-octo-robot

Docker is now running in the terminal and files can be executed within the container to have access to all packages needed. Further documentation can be found here