seo-chufengli

1.0.13 • Public • Published

seo-chufengli

  • Shopback node.js code challenge

Installation

npm install seo-chufengli

Usage

var seo = require('seo-chufengli')
var shopback = new seo.readFile('test.html')
    .detectStrong(5)
    .detectRel()
    .detectH1()
    .detectImgAlt()
    .detectHead()
    .detectMeta('robots')
    .detectMeta('chufengli')
    .consoleLog()

Set Rules Easily

var seo = require('seo-chufengli')
var shopback = new seo.readFile('test.html')
    .detectStrong(5)
    .detectRel()
    //.detectH1()
    //.detectImgAlt()
    //.detectHead()
    //.detectMeta('robots')
    //.detectMeta('chufengli')
    .consoleLog()

Write Result to a File

var seo = require('seo-chufengli')
var shopback = new seo.readFile('test.html')
    .detectStrong(5)
    .detectRel()
    .writeFile('result.log')

Todos

  • The input can be Node Readable Stream
  • The output cab be Node Writable Stream

License


MIT

Acknowledgements


Free Software, Happy Coding!

Readme

Keywords

Package Sidebar

Install

npm i seo-chufengli

Weekly Downloads

1

Version

1.0.13

License

MIT

Unpacked Size

5.45 kB

Total Files

5

Last publish

Collaborators

  • chufengli