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 🙏

© 2026 – Pkg Stats / Ryan Hefner

nkvs-md-creator

v1.0.0

Published

Markdown creator.

Readme

nkvs-md-creator

test

table

import { createTable } from 'nkvs-md-creator'

const data = {
  element: 'table',
  head: ['name', 'type', 'description'],
  align: ['left', 'center', 'right'],
  body: [
    ['name1', 'type1', 'description1'],
    ['name2', 'type2', 'description2']
  ]
}

const result = createTable(data)
console.log(result)
| name | type | description |
| :--- | --- | ---: |
| name1 | type1 | description1 |
| name2 | type2 | description2 |

h

import { createH } from 'nkvs-md-creator'

const data = {
  element: 'h',
  depth: 6,
  text: 'function',
  id: 'custom-id'
}

const result = createH(data)
console.log(result)
###### function

hr

import { createHr } from 'nkvs-md-creator'

const data = {
  element: 'hr'
}

const result = createHr(data)
console.log(result)
---

pre

import { createPre } from 'nkvs-md-creator'

const data = {
  element: 'pre',
  language: 'JavaScript',
  text: 'function add(a, b) {\n  return a + b\n}'
}

const result = createPre(data)
console.log(result)
```JavaScript
function add(a, b) {
  return a + b
}
```

list

import { createList } from 'nkvs-md-creator'

const data = {
  element: 'ul',
  children: [
    {
      text: '123',
      child: {
        element: 'ol',
        children: [
          {
            text: '123',
            child: {
              element: 'ul',
              children: [
                {
                  text: '123'
                },
                {
                  text: '123'
                }
              ]
            }
          },
          {
            text: '123'
          }
        ]
      }
    },
    {
      text: '123',
      child: {
        element: 'checkbox-list',
        children: [
          {
            text: '123',
            checked: true
          },
          {
            text: '123'
          }
        ]
      }
    },
    {
      text: '123',
      child: {
        element: 'radio-list',
        children: [
          {
            text: '123',
            checked: true
          },
          {
            text: '123'
          }
        ]
      }
    },
    {
      text: '123',
      child: {
        element: 'dl',
        children: [
          {
            element: 'dt',
            text: '123'
          },
          {
            element: 'dd',
            text: '123'
          }
        ]
      }
    }
  ]
}

const result = createList(data)
console.log(result)
- 123
  1. 123
    - 123
    - 123
  2. 123
- 123
  - [x] 123
  - [ ] 123
- 123
  - (x) 123
  - ( ) 123
- 123
  123
  : 123

text

import { createText } from 'nkvs-md-creator'

const data = {
  element: 'template',
  children: [
    {
      element: 'a',
      text: 'image',
      href: 'https://www.baidu.com',
      child: {
        element: 'template',
        children: [
          {
            element: 'img',
            src: 'http',
            alt: 'image',
            title: '123'
          }
        ]
      }
    },
    {
      element: 'em',
      text: 'image',
      child: {
        element: 'template',
        children: [
          {
            element: 'strong',
            text: '123'
          }
        ]
      }
    },
    {
      element: 'code',
      text: 'function add(a, b) { return a + b }'
    },
    {
      element: 'sup',
      text: 'test'
    },
    {
      element: 'sub',
      text: 'test'
    },
    {
      element: 'mark',
      text: 'test'
    },
    {
      element: 'del',
      text: 'test'
    }
  ]
}

const result = createText(data)
console.log(result)
[image![image](http "123")](https://www.baidu.com)*image**123***`function add(a, b) { return a + b }`^test^~test~==test==~~test~~

blockquote

import { createBlockquote } from 'nkvs-md-creator'

const data = {
  element: 'blockquote',
  type: 'warning',
  title: 'Warning',
  children: [
    {
      text: '- Revenue was off the chart.\n- Profits were higher than ever.\n- 123'
    },
    {
      type: 'bulb',
      title: 'Tip',
      children: [
        {
          text: 'No!!!'
        }
      ]
    },
    {
      text: '- Revenue was off the chart.\n- Profits were higher than ever.\n- 123'
    },
    {
      text: '*Everything* is going according to **plan**.'
    }
  ]
}

const result = createBlockquote(data)
console.log(result)
> :warning: **Warning**
>
> - Revenue was off the chart.
> - Profits were higher than ever.
> - 123
>
>> :bulb: **Tip**
>>
>> No!!!
>
> - Revenue was off the chart.
> - Profits were higher than ever.
> - 123
>
> *Everything* is going according to **plan**.

component

import { createComponent } from 'nkvs-md-creator'

const data = {
  element: 'custom',
  component: 'componentName',
  attrs: 'class="p-4"',
  children: [
    {
      text: '1'
    },
    {
      component: 'componentName',
      attrs: 'class="p-4"',
      children: [
        {
          text: '1.1'
        },
        {
          component: 'componentName',
          attrs: 'class="p-4"',
        }
      ]
    },
    {
      text: '1'
    }
  ]
}

const result = createComponent(data)
console.log(result)
::componentName class="p-4"
  1
  ::componentName class="p-4"
    1.1
    ::componentName class="p-4"
    ::
  ::
  1
::