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

hkci

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hkci

Command line interpreter for haskind

latest
Source
npmnpm
Version
1.4.5
Version published
Weekly downloads
7
-22.22%
Maintainers
1
Weekly downloads
 
Created
Source

hkci

dependencies Status Build Status

Command line interpreter for haskind.

This tool is used to explore the haskind library. haskind modules are loaded in the repl for you from the get go!

Install

$ npm install -g hkci
$ hkci

Usage

Functions can be found in their appropriate module. To load functions directly into the repl context, call it with module().

 λ > Data.Maybe.Just('haskind')
{ just: 'haskind' }

 λ > module(Data.Maybe)
[ 'Just',
  'Nothing',
  'maybe',
  'isJust',
  'isNothing',
  'fromJust',
  'fromMaybe',
  'listToMaybe',
  'maybeToList',
  'catMaybes',
  'mapMaybe' ]

 λ > foo = [Just('haskind'), Nothing(), Just(3)]
[ { just: 'haskind' }, { nothing: null }, { just: 3 } ]

 λ > Data.Maybe.catMaybes(foo)
[ 'haskind', 3 ]

Cli Options

Various options are available, use hkci -h for more info.

File loading

Files can be loaded into the repl using both the command line and through REPL commands.

hkci relative/path.js

Loaded files can then be reloaded using .reload or .r for short. To load another file, use .load [filename] or .l [filename].

~/.hkcirc

You can unlock more features using an rc file. options include:

  • prompt - change the default prompt
  • vim - adds readline-vim support
  • bindings - vim keybindings to add to readline
  • options - set cli options (by long name)
{
    "prompt": "Main> ",
    "vim": true,
    "bindings": {
        "insert": [ "kj", "esc" ]
    },
    "options": {
        "Enum": true,
        "Ix": true
    }
}

License

MIT License

Copyright © 2016 Erik Sutherland. All rights reserved.

Keywords

haskind

FAQs

Package last updated on 23 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