New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

haiku-random

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

haiku-random

Provides a set of 1500 haiku

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

haiku-random

1500 haiku

All haiku can be found in haiku.txt

Examples

running my river
I uncovered my princes
beside my money

summoning my soul,
Sweden admired my fingers
before my clothing

sweeping your target
I uncovered your lounges
before your luggage

Install

$ npm install --save haiku-random

Usage

var haiku = require('haiku');
var random_haiku = haiku.random();
var specific_haiku = haiku.specific(1);
var html_haiku = haiku.random("html");
var haiku_array = haiku.specific(1500,"shell");
var all_haiku = haiku.getAll();
var all_html_haiku = haiku.getAll("html");

API

haiku.random([format])

Returns a random haiku from the set (Optional 'format' parameter determines haiku format {"html", "shell"})

haiku.specific(index, [format])

Returns a specific haiku from the set (index = {1-1500})(Optional 'format' parameter determines haiku format {"html", "shell"})

haiku.getAll([format])

Returns the entire set of haiku in the specified format (default: each haiku as array of lines, inside array of all haiku)

  • Random Haiku

License

ISC © Ian Price

Keywords

haiku

FAQs

Package last updated on 27 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts