https://github.com/khtdr/short-winded
https://github.com/khtdr/short-winded
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/khtdr/short-winded
- Owner: khtdr
- Created: 2022-10-03T01:11:19.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-03T01:29:53.000Z (almost 4 years ago)
- Last Synced: 2025-04-14T01:59:50.291Z (over 1 year ago)
- Language: TypeScript
- Size: 10.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
Attempts to summarize text
#+BEGIN_SRC shell :results verbatim :exports both
node example.js
#+END_SRC
#+RESULTS:
: It creates a new Socket.io client, and upon receiving the file-change-event from the server, reloads the page. That solves the problem for the index.html page, but what about the rest of the HTML pages? Your browser will not have direct access to the files you are editing, so it will rely on a smart web-server that has access to your file system. The best choice will be the one that allows you to solve the "refresh" problem easiest.
* Usage
#+BEGIN_SRC javascript :results none
import { summarize } from 'short-winded'
const summary = summarize('...', 75); // approximate word count
#+END_SRC
* Installation
Use your favorite package manager. I like ~pnpm~. This package depends on ~compromise~.
#+BEGIN_SRC shell :results none
pnpm install short-winded compromise
#+END_SRC