arg-capturer

Capture arguments and flags between quotes, useful for discord bots.

Usage no npm install needed!

<script type="module">
  import argCapturer from 'https://cdn.skypack.dev/arg-capturer';
</script>

README

capture

Capture arguments in between quotes and flags in a string.

Quick Example

const { capture } = require("@ruben40000/capture")

const str = 'hello world my name is "uwu neko"'

console.log(
    capture(str)
)