tldr-cyg v1.6.1
tldr-node-client
A Node.js based command-line client for tldr, for CYGWIN.

Installing
$ npm install -g tldr-cygUsage
To see tldr pages:
tldr <command>show examples for this commandtldr <command> --os=<platform>show command page for the given platform (linux,osx,sunos)tldr --linux <command>show command page for Linuxtldr --osx <command>show command page for OSXtldr --sunos <command>show command page for SunOStldr --listshow all pages for current platformtldr --list-allshow all available pagestldr --randomshow a page at randomtldr --random-exampleshow a single random example
The client caches a copy of all pages locally, in ~/.tldr.
There are more commands to control the local cache:
tldr --updatedownload the latest pagestldr --clear-cachedelete the entire local cache
As a contributor, you might also need the following commands:
tldr --render <path>render a local page for testing purposes
Configuration
You can configure the tldr client by adding a .tldrrc file in your HOME directory.
This file has to be valid JSON:
{
"colors": {
"text": "green",
"command-background": "black",
"command-foreground": "red",
"command-token": "white"
}
}If you regularly need pages for a different platform (e.g. Linux), you can put it in the config file:
{
"platform": "linux"
}The default platform value can be overwritten with command-line option:
tldr du --os=osxAs a contributor, you can also point to your own fork or branch:
{
"repository" : "myfork/tldr",
// or
"repository" : "myfork/tldr#mybranch",
}What changed?
I added only a single line to the top of tldr.js, which prevents the color from being sent to CYGWIN. Everything else is identical.
Contributing
Contribution are most welcome! Have a look over here for a few rough guidelines.
