New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bigseo

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bigseo

BigSEO is a ExpresJS module built for apps who need a SEO Engine exclusively for web crawlers such as Google, Bing, Facebook, etc.

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

BigSEO (WIP)

BigSEO is a ExpresJS module built for apps who need a SEO Engine exclusively for web crawlers such as Google, Bing, Facebook, etc.

It is simple to attach to your pre existing ExpressJS application.

npm install bigseo --save

###TODO:

  1. List robots user agents
  2. Implement Express 3.x compatibility
  3. Work without jquery

ExpressJS 4.x

var bigSeo = require('bigseo')();
.
.
.
app.use(bigSeo.run());
app.use('/save/cache', bigSeo.cache()); // You can change this route if you want
// Your application routes

BigSEO have a few configurable parameters that you can put in the constructor

// Default values
opts = {
    log: true,
    cache_url: '/save/cache',
    cache_path: 'caches'
};

At the moment you start your express application, BigSEO will create by default a caches/ where it will save the cached content.

The cache name is a base64.html generated from the saved url.

Browser and Saving Cache

BigSEO also exposes to the browser a BigSEO function under /bigseo/bigseo.js. So you can import this on your layout file

script(src='/bigseo/bigseo.js')
<script src='/bigseo/bigseo.js'></script>

The client follows these steps:

var bigSeo = new BigSEO();
bigSeo.save(); // Call when you think its ready to save a new cache

The save method accepts 2 parameters, the success and the error callback in that specific order.

The BigSEO client construct also accepts a opts parameter with the following default value:

opts = {
    url: '/save/cache'
};

REMEBER: IF YOU CHANGE THE SAVE PATH ON YOU EXPRESS APPLICATION, YOU ALSO HAVE TO CHANGE IN THE CLIENTS SETTING

Keywords

FAQs

Package last updated on 02 Aug 2014

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc