An open API service providing repository metadata for many open source software ecosystems.

GitHub / purescript-node / purescript-node-readline

A low-level PureScript interface to the Node readline API

JSON API: http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-node%2Fpurescript-node-readline
PURL: pkg:github/purescript-node/purescript-node-readline

Stars: 9
Forks: 11
Open issues: 1

License: mit
Language: PureScript
Size: 79.1 KB
Dependencies parsed at: Pending

Created at: over 11 years ago
Updated at: over 1 year ago
Pushed at: over 1 year ago
Last synced at: 17 days ago

Commit Stats

Commits: 50
Authors: 18
Mean commits per author: 2.78
Development Distribution Score: 0.78
More commit stats: https://commits.ecosyste.ms/hosts/GitHub/repositories/purescript-node/purescript-node-readline

Releases
v8.1.1

v8.1.1

Bugfixes:

  • Ensure that callbacks passed to question and question' are invoked (#38 by @youngnh)
  • Fixed typo in options passed to readline.createInterface (#38 by @youngnh)
over 1 year ago
Download
v8.1.0

v8.1.0

Bugfixes:

  • Bump node-streams to v9.0.0 to fix FFI issues (#37 by @JordanMartinez)
over 2 years ago
Download
v8.0.0

v8.0.0

Breaking changes:

  • Removed setLineHandler and LineHandler type alias (#34 by @JordanMartinez)

    setLineHandler was previously implemented as

    readline.removeAllListeners("line");
    readline.on("line", cb);
    
    With the addition of bindings from `EventEmitter`,
    this can be done using `on`
    ```purs
    example = do
      removeListener <- interface # on lineH \line -> do
        ...
      ...
      removeListener
    

New features:

  • Added missing createInterface options (#35 by @JordanMartinez)

    • history
    • removeHistoryDuplicates
    • prompt
    • crlfDelay
    • escapeCodeTimeout
    • tabSize
  • Added missing APIs (#35, #36 by @JordanMartinez)

    • pause/resume
    • question'
    • getPrompt
    • write exposed as writeData and writeKey
    • line, cursor
    • getCursorPos, clearLine variants, clearScreenDown variants
    • cursorTo variants, moveCursor variants
    • emitKeyPressEvents
  • Added Aff-based convenience methods (#36 by @JordanMartinez)

    • question
    • question'
    • countLines
    • blockUntilClosed
  • Added bindings for AbortController/AbortSignal (#36 by @JordanMartinez)

Bugfixes:

Other improvements:

  • Update CI node version to lts/* (#31, #32 by @JordanMartinez)
  • Update CI actions to v3 (#31, #32 by @JordanMartinez)
  • Format code via purs-tidy; enforce formatting in CI (#31, #32 by @JordanMartinez)
  • Update FFI to use uncurried functions (#33 by @JordanMartinez)
  • Reordered export list (#35 by @JordanMartinez)
over 2 years ago
Download
v7.0.0

v7.0.0

Breaking changes:

  • Update project and deps to PureScript v0.15.0 (#28 by @JordanMartinez, @sigma-andex)
over 3 years ago
Download
v6.0.0

v6.0.0

Due to implementing a breaking change incorrectly, use v7.0.0 instead.

over 3 years ago
Download
v5.0.0

v5.0.0

Breaking changes:

  • Added support for PureScript 0.14 and dropped support for all previous versions (#20)
  • Removed length parameter for setPrompt (#21)
  • Ensured a consistent argument position for functions using Interface (#23)

Other improvements:

  • Migrated CI to GitHub Actions and updated installation instructions to use Spago (#19)
  • Added a changelog and pull request template (#22)
over 4 years ago
Download
v4.0.1

v4.0.1

  • Relax upper bounds to allow building with 0.13. (@klntsky)
over 6 years ago
Download
v4.0.0

v4.0.0

Updates for 0.12

over 7 years ago
Download
v3.1.0

v3.1.0

Add question (@dgendill)

about 8 years ago
Download
v3.0.1

v3.0.1

Relax the upper bound in bower.json on node-process, so that this library can be depended on together with version 5.0.0 of node-process without any hassle.

over 8 years ago
Download