gmynd

1.0.5 • Public • Published

G•M•Y•N•D

A javascript utility library

This library serves for (students) data visualization projects. It provides some data manipulation functions and other utility functions to make the life of javascript programming a bit easier. It's just a set of convenience functions, not a framework.

Some remarks about naming functions and arguments

In this context "data" always refers to a JSON representation of a table, which is an array of simple objects like:

let superheroes = [ 
  {Name:"A-Bomb", Height:203, Weight:441},
  {Name:"Abe Sapien", Height:191, Weight:65},
  {Name:"Abin Sur", Height:185, Weight:90},
  {Name:"Abomination", Height:203, Weight:441},
  {Name:"Absorbing Man", Height:193, Weight:122},
  ...
]

This kind of JSON is usually generated if you convert a CSV-file to JSON. The original CSV of the example above would look like this:

Name,Height,Weight
A-Bomb,203,441
Abe Sapien,191,65
Abin Sur,185,90
Abomination,203,441
Absorbing Man,193,122
...

We will refer to the column titles (e.g. Name, Height, Weight) as properties or props and to the rows as data objects or entries.


Installation

Either copy ./src/gmynd.js to your project folder or install it in any node.js project:

npm install gmynd

Load the functions into your node script:

const gmynd = require("gmynd");

Reference

Data manipulation

Array helpers

Math and utilities


Acknowledgements

Example data from

https://www.kaggle.com/dannielr/marvel-superheroes

https://ourworldindata.org/age-structure

https://ourworldindata.org/gender-ratio


Suggestions? Bugs? File an issue! :)

Package Sidebar

Install

npm i gmynd

Weekly Downloads

2

Version

1.0.5

License

ISC

Unpacked Size

1.24 MB

Total Files

63

Last publish

Collaborators

  • bohnacker
  • caitoor