winprint

0.1.1 • Public • Published

npm version Build Status npm download count XO code style

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

Readme

Keywords

Package Sidebar

Install

npm i winprint

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • abrelsfo