hipku

Encode any IP address as a haiku

  • Owner: gabemart/hipku
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Hipku

A tiny javascript library to encode IPv6 and IPv4 addresses as haiku.

For full documentation and a working demo, check out https://gabrielbrady.com/projects/hipku

Installation

Install with npm install hipku. index.js can also be used directly in the browser.

Usage

To encode 127.0.0.1 or ::1 call Hipku.encode('127.0.0.1') or Hipku.encode('::1'). IPv4 addresses must have octets separated by a . period character and IPv6 addresses must have hextets separated by a : colon character.

When decoding a hipku, such as:

The weary red dove
fights in the empty tundra.
Jasmine petals dance.

the lines can be separated either by the newline character \n or by a space. Both will produce the same result.

Hipku.decode('The weary red dove\nfights in the empty tundra.\nJasmine petals dance.');

> "254.53.93.114"

Hipku.decode('The weary red dove fights in the empty tundra. Jasmine petals dance.');

> "254.53.93.114"

Node.js

var hipku = require('hipku');

hipku.encode('127.0.0.1');

hipku.decode('The weary red dove fights in the empty tundra. Jasmine petals dance.');

Main metrics

Overview
Name With Ownergabemart/hipku
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 1)
Platform
License:MIT License
所有者活动
Created At2014-12-12 00:29:08
Pushed At2019-01-31 18:24:52
Last Commit At2019-01-31 12:24:51
Release Count0
用户参与
Stargazers Count322
Watchers Count8
Fork Count25
Commits Count14
Has Issues Enabled
Issues Count5
Issue Open Count1
Pull Requests Count0
Pull Requests Open Count0
Pull Requests Close Count1
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private