Initial commit

This commit is contained in:
Marcelo
2025-11-20 15:27:34 -06:00
commit cc72c9fc5d
3221 changed files with 737477 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
#!/usr/bin/env node
'use strict';
require('../../../../')();

View File

@@ -0,0 +1,9 @@
`use strict`;
module.exports = {
methodA: function(param1, param2) {
return `${param1}-${param2}`;
},
methodB: (param1, param2) => `${param1-param2}`
}

View File

@@ -0,0 +1,8 @@
{
"name": "object-flat",
"version": "0.0.0",
"private": true,
"description": "Test object-flat",
"main": "./lib/index.js",
"bin": "./bin/cli.js"
}

View File

@@ -0,0 +1,60 @@
'use strict';
const tests = [{
description: 'Version --version',
input: '--version',
output: `0.0.0`
},{
description: 'Help --help',
input: '--help',
output: `
Description:
Test object-flat
Usage:
$ object-flat <command>
Commands:
methodA
methodB
`
}, {
description: 'methodA --help',
input: 'methodA --help',
output: `
Usage:
$ object-flat methodA [options]
Options:
--param1
--param2
`
}, {
description: 'methodB --help',
input: 'methodB --help',
output: `
Usage:
$ object-flat methodB [options]
Options:
--param1
--param2
`
}, {
description: 'methodA --param2="Z" --param1="K"',
input: 'methodA --param2="Z" --param1="K"',
output: `K-Z`
}, {
description: 'methodB --param1=3 --param2=2',
input: 'methodB --param1=3 --param2=2',
output: `1`
}];
module.exports = tests;