0.0.5 • Published 4 years ago

defang-refang v0.0.5

Weekly downloads
71
License
MIT
Repository
github
Last release
4 years ago

Defang! Refang!

Defang and fang your dangerous URLs, IPs and emails! No dependencies, you only get the dentist.

Install

$ npm install defang-refang

Usage

import dr from "./defangrefang";

dr.defang("http://dr.evils.lair/");

=> "hXXp://dr[.]evils[.]lair/"

dr.refang("'192[.]168[.]1[.]0'");

=> "192.168.1.0"

Features

Handles the following:

  • Emails
  • IPv4
  • URLs
  • Prefixes
    • ftp
    • http
    • https
    • ssh
0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago