A 100% Javascript (ES2017) implementation of the less command.
A Vorpal.js extension, vorpal-less
lets you pipe vorpal commands and content through less.
npm install @ApeironTsuka/vorpal-less
npm install @ApeironTsuka/vorpal
import Vorpal from '@ApeironTsuka/vorpal';
import hn from '@ApeironTsuka/vorpal-hacker-news';
import less from '@ApeironTsuka/vorpal-less';
const vorpal = new Vorpal();
vorpal
.delimiter('node~$')
.use(hn)
.use(less)
.show();
$ node hacker-news.js
node~$ hacker-news | less
...
... content
...
:
vorpal-less
aims to be a letter-perfect implementation of the less
command you know (and love?). All features implemented so far will appear in its help menu:
vorpal~$ less --help
- Primary functionality, prompt, screen writing, etc.
- All navigation commands and shortcuts.
- Less-style help menu.
Feel free to contribute! Additional work is needed on:
- Search options
- File-reading options
- Option flags
MIT © David Caccavella