Initial commit

This commit is contained in:
Developer
2025-04-21 16:03:20 +02:00
commit 2832896157
22874 changed files with 3092801 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
#!/usr/bin/env node
'use strict';
var getStdin = require('get-stdin');
var meow = require('meow');
var lpadAlign = require('./');
var cli = meow({
help: [
'Usage',
' $ cat <file> | lpad-align',
'',
'Example',
' $ cat unicorn.txt | lpad-align',
' foo',
' foobar',
' foobarcat'
]
}, {
default: {
indent: 4
}
});
getStdin(function (data) {
var arr = data.split(/\r?\n/);
arr.forEach(function (el) {
console.log(lpadAlign(el, arr, cli.flags.indent));
});
});