Packages

shell-quote

1.12.0 · 2 Oct 2026MIT96.3M / weekRepositorynpmAtom feed

Your version

34 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 1.x · latest line
  2. 1.12.0

    2 Oct 2026
    • parse: support here-documents (<<) #31

    • parse: support tab-stripping here-documents (<<-) dbfac37

    • parse: support output process substitution (>() 2053315

  3. 1.11.0

    29 Sep 2026
    • quote: drop a replace that can never match in the single-quote branch #15

    • parse: support bash ANSI-C quoting ($'...') #32

    • quote: reject line terminators in tokens after a comment 6002b2e

  4. 1.10.0

    10 Jul 2026
    • parse: add opt-in splitUnquoted option for shell field-splitting of unquoted expansions #1

    • parse: match nested ${...} braces so nested parameter expansion is consumed as one substitution c0842c8

    • Remove the space in js code fences so evalmd evaluates them 2116fa3

  5. 1.9.0

    25 Jun 2026
    • security

      parse: finalize tokens in linear time (GHSA-395f-4hp3-45gv) 7ff5488

    • Add types dca6e21

    • Update eslint 9aa9e8f

  6. 1.8.4

    22 May 2026
  7. 1.8.3

    2 Jun 2025
    • Remove unnecessary backslash escaping in single quotes #15

  8. 1.8.2

    27 Nov 2024
    • quote: preserve empty strings #18

    • Fix changelog tags 0fb9fd8

    • Split out node 10-20, and 20+ 819bd84

  9. 1.8.1

    7 Apr 2023
    • parse: preserve whitespace in comments #6

    • Properly support the escape option #5

    • parse: hoist getVar to module level b42ac73

  10. 1.8.0

    31 Jan 2023
    • Extract parse and quote to their own deep imports 553fdfc

    • Add support for here strings (<<<) 9802fb3

    • parse: Add syntax support for duplicating input file descriptors 216b198

  11. 1.7.4

    13 Oct 2022
    • Add node_modules to .gitignore #48

    • Fix indentation and whitespace aaa9d1f

    • Additional cleanup 397cb62

  12. 1.7.3

    21 Oct 2021
    • security

      Fix a security issue where the regex for windows drive letters allowed some shell meta-characters to escape the quoting rules. (CVE-2021-42740)

  13. 1.7.2

    1 Sep 2019
    • Fix a regression introduced in 1.6.3. This reverts the Windows path quoting fix.

  14. 1.7.1

    13 Aug 2019
    • Fix $ being removed when not part of an environment variable name. (@Adman in #32)

  15. 1.7.0

    13 Aug 2019
    • Add support for parsing >> and >& redirection operators. (@forivall in #16)

    • Add support for parsing <( process substitution operator. (@cuonglm in #15)

  16. 1.6.3

    13 Aug 2019
    • Fix Windows path quoting problems. (@dy in #34)

  17. 1.6.2

    13 Aug 2019
    • Use native JSON and Array methods #21

    • Fix whitespace 72fb5a8

    • Disable package-lock.json d450577

  18. 1.6.1

    17 Jun 2016
    • Fix some more escaping for .quote() ace52f4

    • Fix escaping for greater than and less than 70e9eb2

  19. 1.6.0

    24 Apr 2016
    • Add comment parsing feature b8b5c31

  20. 1.5.0

    16 Mar 2016
    • Add escape option to .parse 4d400e7

  21. 1.4.3

    8 Mar 2015
    • Fix quote() with special chars 811b5a0

  22. 1.4.2

    20 Jul 2014
  23. 1.4.1

    25 Dec 2013
  24. 1.4.0

    18 Oct 2013
    • Add MIT LICENSE file #6

    • Rewrite parser as a character based scanner c7ca9a2

    • Add tests for glob patterns 3418892

  25. 1.3.3

    24 Jun 2013
    • Failing set test with an env cb 9fb2096

    • Remove the broken special case f9a0ee5

  26. 1.3.2

    24 Jun 2013
    • Tests for setting env vars f44b039

    • Fixed the parse test, broke the op tests 74d6686

    • Factored out single and double quote regex de9e0a5

  27. 1.3.1

    13 May 2013
  28. 1.3.0

    13 May 2013
    • Hacky tokenizer is much simpler 7e91b18

    • Nearly passing with a clunky state env parser, array issues d6d6416

    • Test for functional env expansion 666395f

  29. 1.2.0

    13 May 2013
    • Add the special vars to the replace regex but the chunker breaks on them d1ff82a

    • Fixed the env test, everything is fine a45897f

  30. 1.1.0

    13 May 2013
    • Quote all ops objects ac7be63

    • Test for parsed ops objects in quote() 59fb71b

    • Another test for op object quoting 5819a31

  31. 1.0.0

    13 May 2013
    • Document ops, op example a6381e6

    • Some more passing double-char op tests fbc6e5c

    • Labeled regex states 8c008b2

  32. 0.1.x
  33. 0.1.1

    17 Apr 2013
    • Return empty list when parsing an empty (or whitespace-only) string 1475717

  34. 0.1.0

    15 Apr 2013
  35. 0.0.x
  36. 0.0.1

    18 May 2012
    • Fixed unescaped metachars and bump 5ce339f

    • Fix for escaped spaces 669b616

  37. 0.0.0

    18 May 2012