JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 80
  • Score
    100M100P100Q69773F
  • License MIT

CLI tool to cut markdown file in a madly comfortable way

Package Exports

  • madcut
  • madcut/plugin

Readme

🎬 MadCut License NPM version Build Status Coverage Status

CLI tool to run cut markdown into peaces. Based on 🐊Putout code transformer.

Install

npm i madcut

API

cut(markdown);

import {cut} from 'madcut';
import montag from 'montag';

await cut(montag`
    # Hello
    
    ## World
    
    This is the world
`);

// returns
[
    montag`
        # Hello\n\n
    `,
    montag`
        ## World
        
        This is the world\n
    `,
];

infer(markdown);

import {infer} from 'madcut';
import montag from 'montag';

await infer(montag`
    # Hello
    ## World
`);
// returns
['World'];

License

MIT