Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
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 552B

1234567891011121314151617181920212223242526272829
  1. # lines-and-columns
  2. Maps lines and columns to character offsets and back. This is useful for parsers
  3. and other text processors that deal in character ranges but process text with
  4. meaningful lines and columns.
  5. ## Install
  6. ```
  7. $ npm install [--save] lines-and-columns
  8. ```
  9. ## Usage
  10. ```js
  11. import LinesAndColumns from 'lines-and-columns';
  12. const lines = new LinesAndColumns(
  13. `table {
  14. border: 0
  15. }`);
  16. lines.locationForIndex(9); // { line: 1, column: 1 }
  17. lines.indexForLocation({ line: 1, column: 2 }); // 10
  18. ```
  19. ## License
  20. MIT