Skip to content
Myr

max-buffer

This file

Path

fixtures/max-buffer

6 lines · 159 bytes

Last changed by

[BREAKING] ES2015ify and require Node.js 4Sindre Sorhusbefore adoption8a7a51c

History of this file

Take it

add max-buffer support (#37)James Talmagebefore adoption6288806

lines 1–2why, one step back
1#!/usr/bin/env node
2'use strict';

[BREAKING] ES2015ify and require Node.js 4Sindre Sorhusbefore adoption8a7a51c

lines 3–4why, one step back
3const output = process.argv[2];
4const bytes = Number(process.argv[3]);

add max-buffer support (#37)James Talmagebefore adoption6288806

line 5why, one step back
5

[BREAKING] ES2015ify and require Node.js 4Sindre Sorhusbefore adoption8a7a51c

line 6why, one step back
6process[output].write('.'.repeat(bytes - 1) + '\n');