Skip to content

UpperCod/indentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@uppercod/indentation

allows to know the indentation per line associated with each line a depth factor, the calculation is indifferent to the use of tab or space so it is constant.

install

npm install @uppercod/indentation

Usage

import { getIndentation } from "@uppercod/indentation";

const yaml = `
root
    - every
`;

console.log(getIndetation(yaml)); // [[0,'root'],[1,'- every']];

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published