3.0.0 • Published 2 years ago

indent-model v3.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
2 years ago

IndentModel

Configure an indentation model and put spaces with fixed tabsizes in between strings

const IndentModel = require("indent-model");
const IndentModel = require("indent-model");
const itemsToLog = [
    "2020-08-06T00:00:00.000+0200",
    "GET",
    "/v1/some/api/endpoint",
    "monkey",
    1273457,
    true,
    false
];
//
const tabs4 = new IndentModel();
console.log(tabs4.tabify(...itemsToLog));
"2020-08-06T00:00:00.000+0200    GET     /v1/some/api/endpoint   monkey  1273457     true    false"
//--,---,---,---,---,---,---,---,---,---,---,---,---,---,---,---,---,---,---,---,---,---,---,
//
const tabs6 = new IndentModel({ tabSize: 6, minDistance: 4 });
console.log(tabs6.tabify(...itemsToLog));
"2020-08-06T00:00:00.000+0200        GET         /v1/some/api/endpoint         monkey      1273457     true        false"
//----,-----,-----,-----,-----,-----,-----,-----,-----,-----,-----,-----,-----,-----,-----,-----,-----,-----,-----,
3.0.0

2 years ago

1.0.5

3 years ago

1.0.4

3 years ago

2.0.3

4 years ago

2.0.4

4 years ago

2.0.2

4 years ago

1.0.3

4 years ago

2.0.1

4 years ago

1.0.2

4 years ago

2.0.0

4 years ago

1.0.0

4 years ago