Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

readme.md 752B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # cli-cursor [![Build Status](https://travis-ci.org/sindresorhus/cli-cursor.svg?branch=master)](https://travis-ci.org/sindresorhus/cli-cursor)
  2. > Toggle the CLI cursor
  3. The cursor is [gracefully restored](https://github.com/sindresorhus/restore-cursor) if the process exits.
  4. ## Install
  5. ```
  6. $ npm install --save cli-cursor
  7. ```
  8. ## Usage
  9. ```js
  10. const cliCursor = require('cli-cursor');
  11. cliCursor.hide();
  12. const unicornsAreAwesome = true;
  13. cliCursor.toggle(unicornsAreAwesome);
  14. ```
  15. ## API
  16. ### .show([stream])
  17. ### .hide([stream])
  18. ### .toggle(force, [stream])
  19. `force` is useful to show or hide the cursor based on a boolean.
  20. #### stream
  21. Type: `Stream`<br>
  22. Default: `process.stderr`
  23. ## License
  24. MIT © [Sindre Sorhus](https://sindresorhus.com)