0.0.26 • Published 5 years ago

principia v0.0.26

Weekly downloads
6
License
MIT
Repository
github
Last release
5 years ago

Principia

npm Travis

A command line utility for generating plots roughly according to the guiding ideas behind Principiae. This video presents a quick discussion on the types of plots that this tool is meant to capture. The command contains several useful sub-commands that are meant to be chained together.

Installation and Usage

Install

npm i -g principia

Usage

Generate an svg from a spec:

principia plot

This command will take a principia-plot style spec and convert it to an svg using principia-plot.

Append extra styles to an svg created with plot:

principia append <style>

This command appends extra styles to the end of a principia svg.

Render an svg as html:

principia html

This command renders an svg as html. There are several additional options to do render-time alignment of elements that need to be rendered to know their sizes.

Render an html document as a pdf:

principia pdf

Uses google chrome to render an html plot as a pdf. This requires that google chrome is installed.

Render a pdf as a png:

principia png

Use image magick to convert a pdf into a png. This is simply a wrapper around the convert command line tool, and requires that it is installed along with libpng and ghostscript.

Development

npm run lint

will lint everything.

0.0.26

5 years ago

0.0.25

6 years ago

0.0.24

6 years ago

0.0.23

6 years ago

0.0.22

6 years ago

0.0.21

6 years ago

0.0.20

6 years ago

0.0.19

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago