Neatly Prepared Mustache
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

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

install

npm i winprint

Downloadsweekly downloads

0

version

0.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability