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
用户参与
星数322
关注者数8
派生数25
提交数14
已启用问题?
问题数5
打开的问题数1
拉请求数0
打开的拉请求数0
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?