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

atlas_md

v1.1.12

Published

Generate HTML from markdown

Downloads

54

Readme

npm version

Atlas

Atlas convert markdown to html

Prerequisite

Done with node version 16.13.1.

Install

Run npm i atlas_md.

Usage

Add a script in your package.json that run atlas_md.

Create a json file for the configuration.

Add the path to your configuration file in the script. Script atlas_md conf.json or add it after your script call npm run atlas conf.json.

The generated files are located in your "output" directory.

Configuration file

The file must be writen as a json and have the properties:

  • input: string
  • output: string

Example

{
  "input": "input",
  "output": "output"
}

Headers

You can specify some things using commnet at the begining of a markdown file.

All headers must be in this block.

<!-- HeaderBegin -->

<!-- HeaderEnd -->

Page title

Will give the title Cool title to the page.

<!-- HeaderBegin -->

<!-- title
Cool title
-->
<!-- HeaderEnd -->

Page layout

Will define your page layout.

Default layout below

<!-- HeaderBegin -->

<!-- title
Hello i am a title
-->

<!-- layout
<block><header title="test"></block>
<line>
  <menu>
  <block>
    <breadcrumb>
    <content>
 <backlink>
  </block>
</line>
-->
<!-- HeaderEnd -->

Layout's Blocks

<header> is the file's header that display an h1 with the title arg or the file name.

<menu> is a table of content listing all the file's headings.

<breadcrumb> is a breadcrumb from the file to the root. Generate a link to a index.html or index.md file in each folder present in the path to the root.

<content> The file content

<backlink> A link to the nearest index file.

Syntax

Headings

markdown

# Heading level 1
## Heading level 2
### Custom Id{#custom-id}

Font style

markdown

**bold** text

__bold text 2__

*italic text*

_italic text 2_

***bold and italic***

___bold and italic 2___

__*bold and italic 3*__

**_bold and italic 4_**

~~The world is flat.~~

~~_**The world is flat.**_~~

==very important words==

Straigth line

markdown

***

---

_______________________________________________________________

Link

Use only the displayed string to link to a Header

markdown

[link with tooltip](https://www.markdownguide.org/basic-syntax/#links "tooltip")

[Heading IDs](#heading-level-1)

Image

markdown

![image](image/path "San Juan Mountains")

![](image/path){title: 'my title'}

# Tooltip replace the title attribute
![image](image/path){title: 'my title'}

# Tooltip replace the alt attribute
![image](image/path "tooltip")

# Tooltip replace the alt & title attributes
![image](image/path "tooltip"){title: 'my title'}

# The first value for the size is the height and the second is the width
![image](image/path "San Juan Mountains"){title: 'my title', size: '800x400'}

# Align the items on the row
# Value: center or left or right
![image](image/path "San Juan Mountains"){title: 'my title', size: '500x600', align: 'left'}

[![image with link](image/path "super phrase de test du tooltip")](https://www.markdownguide.org/basic-syntax/#links)

Inline code

markdown

inline `code`

Block code

markdown

```
block code
```

Block quote

markdown

>Block quote first line
>> Block inside a block
> second Line

Ordered list

markdown

1. First item
2. Second item
3. Third item
    1. sub list
4. Fourth item

or 

1. First item
8. Second item
3. Third item
    1. sub list
5. Fourth item 

Unordered list

markdown


- First item
- Second item
- Third item
    - sub list
- Fourth item 

or 

* First item
* Second item
* Third item
    * sub list
* Fourth item 

or 

+ First item
+ Second item
+ Third item
    + sub list
+ Fourth item 

Check list

markdown

- [x] Write the press release
- [ ] Update the website
- [ ] Contact the media

Footnote

Footnote will always be at file end

markdown

A footnote link[^1]
[^1]: The first footnote.

Table

Define the column text alignment with the second line

--- = default left
:--- = left
---: = right
:---: = center

markdown

| text left     | text center | text right |
| :---------- | :-------: | --------: |
| content      |  content    |

Definition list

markdown

First Term
: First term definition

Second Term
: Second term definition
: Second term definition second line.