winprint
v0.1.1
Published
This will replace the PRINT function on Windows since PRINT no longer works
Downloads
12
Readme
This is a replacement for the PRINT function on Windows since PRINT no longer works
Install
$ npm install --save winprint
Usage
const winprint = require('winprint');
winprint('giggles.txt', '', function (res) {
console.log(res);
});
//=> shits & giggles
//=> when beig used as a function you need to specify the flag as '' or 'l'
winprint('ponies.txt', 'l', function (res) {
console.log(res);
})
//=> cows & ponies\n
API
winprint(target, flag, callback)
This will replace the PRINT function on Windows since PRINT no longer works
target
Type: string
flag (optional on the command line)
Type: string
Default: Not literal
CLI
$ npm install --global winprint
$ winprint --help
Usage
winprint [input] [flags]
Flags
-l --> print literal
Examples
$ winprint giggles.txt
shits & giggles
$ winprint ponies.txt -l
cows & rainbows\n
License
MIT © Alex Brelsford