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

seo-light-audit

v1.0.0

Published

The program is a inspector whethere your html with seo fit in rules

Downloads

11

Readme

Introduction

The current seo-light-audit module can find this functionality useful for your SEO tips with html.

Enviroment

Node.js Version : v10.12.0

Installation

npm install seo-light-audit

Quick Start

API

const seoAudit = require('seo-light-audit');

seoAudit({option_setting}, '../path/file.html');

Sample

How to launch the seo-light-audit to audit your html?

const seoAudit = require('seo-light-audit');
const path = require('path');
const userSetting = {
  "keywords":["CHOCO TV","如懿傳"],
  "title.text.keywordRequired":true
}

seoAudit(userSetting, path.join('hello.html'));

Demo

npm run demo

Using Guide

The current seo-light-audit module contains an initial set of SEO audits which we’re planning in the default setting. Make the audits available by default in this package. Howerver you can extend the setting by yourself.

There have default setting with "seo-light-audit" module as bellow.

  • keywords : {array}, default is false. if you want to assign keywords, just give ['google bot', 'free']
  • meta, title, strong, h1, a, link, these are html tag.
    • Tags has standrad keys : attributes, required, text
    • attributes : {object}, there have keys is customized by user self that is the name of attributes. howerver, there have the uniform keys under the attributes name. It is value, required, keywordRequired.
    • required : {boolean}, true: check this tag. false: not checking this tag
    • text : {object}, there have uniform keys : value, required, keywordRequired
  • value, required, keywordRequired
    • value : {array}, default is []. the checker don't check the value of item whether mating the value on the default state. If assign an list at there, like ['expedia', 'agoda', 'booking'], the checker will be checked the html raw data whether matching the setting.
    • required : {boolean}, true: checking this item. false: not checking.
    • keywordRequired : {boolean}, true: checking this content of item whether contain keywords. false: not checking
{
  "keywords": false,
  "meta": {
    "attributes": {
      "property": {
        "value": ["og:description", "og:title", "description"],
        "required": true
      },
      "name": {
        "value": ["description"],
        "required": true
      },
      "content": {
        "value": [],
        "required": true,
        "keywordRequired": false
      }
    },
    "required":true
  },
  "title": {
    "attributes":{},
    "text":{
      "value":[],
      "required":true,
      "keywordRequired":false
    },
    "required":true
  },
  "strong": {
    "attributes":{},
    "text":{
      "value":[],
      "required":true,
      "keywordRequired":false
    },
    "required":true
  },
  "h1": {
    "attributes":{},
    "text":{
      "value":[],
      "required":true,
      "keywordRequired":false
    },
    "required":true
  },
  "a": {
    "attributes": {
    },
    "text":{
      "value":[],
      "required":true,
      "keywordRequired":false
    },
    "required":true
  },
  "link": {
    "attributes": {
      "rel": {
        "value": [],
        "required": true
      },
      "hreflang": {
        "value": [],
        "required": true
      }
    },
    "required":true
  },
  "video": {
    "attributes":{
      "src":{
        "value": [],
        "required": true
      },
      "type":{
        "value": [],
        "required": true
      }
    },
    "required":false
  },
  "source":{
    "attributes":{
      "src":{
        "value": [],
        "required": true
      },
      "type":{
        "value": [],
        "required": true
      }
    },
    "required":false
  }
}
  • User can definition audit settings by self

As Sample

{
  "keywords":["CHOCO TV","NBA"],
  "meta.attributes.property.values":["og:title"],
  "meta.attributes.property.required":false,
  "a.required":false,
  "title.text.keywordRequired":true
}