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

dypsloom-docu-trial

v1.1.2

Published

Splits an md file by sections and converts the full version to a pdf. It unpacks the whole files under one folder in the selected folder

Downloads

1

Readme

THIS IS A TRIAL MODULE PLEASE DONT USE

Description

Takes a .md file and splits it up by its by sections in a directory tree.TO decide how the tree level gets created, the following syntax is needed ¿ H1 ¿¿ H2 ¿¿¿ H3 which are to be placed on top of the corresponding markdown headers

H1

H2

H3

The full .md file gets and gets transformed into a .pdf with standard header and content table, and output files are located inside the unpacked folder. This can be done for a single file using the 'dypsloom docu' command, or for a whole project with several md files use 'dypsloom-docu-start'. In addition, a watch can be set to a project, and spliting and reconversion will happen automatically.

Requirements

Machine

  • install npm menneu as global
  • python v ^2.8 with numpy library installed

Md files

Every .md file to be transformed need to contain

---
title: title of the file
date: yyyy-mm-dd
version: 0.0.0
---

The title will be the name will be the name of the folder where everythng is unpacked as well as will give the name to the outcomming pdf file.

Commands from command window

dypsloom-docu

Once the module is installed globally, the command dypsloon-docu can transform a single file.

--in    path of the '.md' file 
--out   path of the output folder with the syntax "/path/to/outfolder/"

if the --in argument is not defined an example .md will be unpacked. If the --out argument is not chosen, the current working folder chosen to unpack the example or the folder where the --in md file is located in case an specific file has been selected.

//general syntax
dypsloom-docu --in "path/to/file.md" --out "path/to/outfolder/"

//examples
dypsloom-docu
dypsloom-docu --in "C:\Users\isabe\Desktop\dyp\example2.md" --out "C:\Users\isabe\Desktop\dyp\hello\"
dypsloom-docu --in "./example2.md" --out "./hello/"
dypsloom-docu  --out "./hello/"

dypsloom-start-docu

Once the module is installed globally, the command dypsloon-start-docu can transform automatically all the md files within a project folder

--dir   path of the project folder with the md files "/path/to/projectfolder/" - required 
--out   path of the output folder with the syntax "/path/to/outfolder/"

By default, all files are automatically unpacked within the project directory where the .md files are, therefore --out argument is optional.

//general syntax
dypsloom-docu --dir "/path/to/projectfolder/" --out "path/to/outfolder/"

//examples 
    //to unpack current directory
dypsloom-start-docu --dir './' 
    // to unpack in a different folder
dypsloom-start-docu --dir './' --out './hello/'

dypsloom-docu-watch

Once the module is installed globally, the command dypsloon-docu-watch can create a watch on all .md files within the project folder. To exit watch press ctrl+C

--dir   path of the project folder with the md files "/path/to/projectfolder/"
--out   path of the output folder with the syntax "/path/to/outfolder/"

By default, all files are automatically unpacked within the project directory where the .md files are, therefore --out argument is optional.

//general syntax
dypsloom-docu --dir "/path/to/projectfolder/" --out "path/to/outfolder/"
//examples
dypsloom-docu-watch --dir './' --out './hello/'
    //to unpack current directory
dypsloom-docu-watch --dir './'

Current problem: this watch uses fs.watch, which depending on the machine can fire several times. Because of this reason it could give an error saying that the file already exists. This error shows at the second firing, meaning that the file is updated - please ignore.

Programatic version

//app.js

const dyp = require('dypsloom-docu');  
dyp.split_pdf_convert(pathI, pathOut);