Socket
Socket
Sign inDemoInstall

tiny-anchor

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tiny-anchor

This project is designed to provide navigation tools to minimize footprint (browser history).


Version published
Weekly downloads
51
decreased by-53.64%
Maintainers
1
Weekly downloads
 
Created
Source

Tiny Anchor

Version

0.0.2

About

This project is designed to provide navigation tools to minimize footprint (browser history).

Installation

npm install tiny-anchor

Usage

Demonstration

  • Code HERE
  • Live HERE

Using the Files

Using a gulpfile.js, the index.js and escape.css can be moved to an appropriate location.

const gulp = require('gulp');

gulp.task('anchor', function() {
  sources = [
    './node_modules/tiny-anchor/index.js'
  ];
  return gulp.src(sources).pipe(gulp.dest('./anchor'));
});

gulp.task('copy-anchor', gulp.series('anchor'));

Hiding Navigation

The navigation code included should be accompanied by a description similar to the following:

This site was made with your safety in mind. The browser history will only show one link to this site. If a link is followed off this site, there will be nothing in the history to show you were here.

The navigation should be used like this ...

<html>
  <head>
    <!-- -->
    <script src="./anchor/index.js"></script>
    <!-- -->
  </head>
  <body>
    <!-- -->
    <a href="#" onclick="anchor.navigate(event, 'index.html')">Home</a>
    <a href="#" onclick="anchor.navigate(event, `http://www.google.com`)">Off-Site</a>
    <!-- -->
  </body>
</html>

Keywords

FAQs

Package last updated on 21 Nov 2020

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc