freaky

0.0.2 • Public • Published

freaky

URL

Basic setup

Install freaky through npm or yarn

npm i freaky
const freaky = require('freaky')

Handling URL

Checking the URL status and redirect the client to another URL if necessary.

Example:

  // You can use this module by calling the freaky function,
  // passing the link's URL and the redirect URL as arguments.

  freaky.checkLink('https://example.com/nonexistent-page', 'https://example.com/404-page');

  freaky.checkLinkOnBeforeUnload('https://example.com/nonexistent-page', 'https://example.com/404-page');

  freaky.checkLinkOnPopState('https://example.com/nonexistent-page', 'https://example.com/404-page');

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    1
  • 0.0.1
    0

Package Sidebar

Install

npm i freaky

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

2 kB

Total Files

3

Last publish

Collaborators

  • b1i