Socket
Socket
Sign inDemoInstall

webring

Package Overview
Dependencies
48
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    webring

Webring calculation library


Version published
Maintainers
1
Created

Readme

Source

Webring

NPM VersionNode VersionBuild Status

Webring calculation module for node.

less dependencies = more stability

Installation

$ npm install webring

Example

var webring = require('webring');

var linker = webring.create('http://www.domain.com/');

linker.on('fetch', function(page){
    console.log(page);
    /*
    { 
      domain: 'domain.com',
      path: '/some_page.html',
      query: {},
      status: 200,
      external: false,
      www: false,
      weight: 0.5,
      hash: '919eb087ed2a9d16bca7ce6db457cea5',
      redirected: false // or redirect target key-hash page
    }
    */
});

linker.on('done', function(){ // or .ondone(callback)
    // this.getPages(); - all pages
    // this.getRelations(); - relations between pages

    console.log('well done');
});

linker.start();

Dependencies

  • iconv-lite
  • request

License

MIT

Keywords

FAQs

Last updated on 07 May 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc