1.0.9 • Published 2 years ago

swtf-fmt v1.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

SWTF Formatter

License: MIT npm npm type definitions swtf

SWTF formatting tool

⚠️ This project is created to meet the needs of our development team. Our main focus currently won't be on maintainig this project.

Content

Installation

Install swtf-parser via npm:

npm i swtf-fmt

Install swtf-parser globally:

npm i -g swtf-fmt

Using CDN:

<script src="https://cdn.jsdelivr.net/npm/swtf-fmt@latest/dist/bundle.min.js"></script>

or

<script src="https://unpkg.com/swtf-fmt@latest/dist/bundle.min.js"></script>

Usage

Let's create simple example:

const { formatSwtf } = require('swtf-fmt');

const rawSwtf = `
- Daily tasks 😐:

    -    store: [borring]
            - food
        - coffee
    - work: [borring]
          - include e2e testing mechanism      [p: high]
        - improve load testing    [p: medium]
    - write today's tasks in SWTF [cool]
`;


console.log(formatSwtf(rawSwtf));

Code above will output:

- Daily tasks 😐:
    - store: [borring]
        - food
        - coffee
    - work: [borring]
        - include e2e testing mechanism [p: high]
        - improve load testing [p: medium]
    - write today's tasks in SWTF [cool]

Magic attributes (IN DEVELOPMENT)

Use magic attributes to boost your experience of writing tasks in SWTF.

Magic attributes are way to enhance SWTF formatting. By default swtf-fmt provides set of magic attributes that can help you in managing and organizing your tasklists.

How does magic attributes work?

After parsing SWTF input using swtf-parser all attributes are going throug all registred Attribute Magic instances. Attribute Magic is process of handling special attribute names or values to enhance your SWTF experience.

List of default magic attributes:

Value templateDescriptionCompiled example
today26.05.2022.
after: {{value}}28.05.2022.
readystatus: ready
in_progressstatus: in_progress
blockedstatus: blocked
donestatus: done
p1priority: 1
1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago