hipku

Encode any IP address as a haiku

  • 所有者: gabemart/hipku
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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.');

主要指標

概覽
名稱與所有者gabemart/hipku
主編程語言JavaScript
編程語言JavaScript (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2014-12-12 00:29:08
推送於2019-01-31 18:24:52
最后一次提交2019-01-31 12:24:51
發布數0
用户参与
星數324
關注者數8
派生數24
提交數14
已啟用問題?
問題數5
打開的問題數1
拉請求數0
打開的拉請求數0
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?