Skip to content

Ruby's Shellwords porting to TS.

License

Notifications You must be signed in to change notification settings

hyrious/shellwords

Repository files navigation

@hyrious/shellwords

Ruby's stdlib shellwords porting to JS (TS).

Usage

import Shellwords from "@hyrious/shellwords"
// const Shellwords = require("@hyrious/shellwords")

Shellwords.split('here are "two words"')
// [ 'here', 'are', 'two words' ]
Shellwords.escape("It's better to give than to receive")
// "It\\'s\\ better\\ to\\ give\\ than\\ to\\ receive"
Shellwords.join(['--a=b c', '-d', 'e f'])
// '--a\\=b\\ c -d e\\ f'

Alters

Licence

MIT @ hyrious

About

Ruby's Shellwords porting to TS.

Resources

License

Stars

Watchers

Forks

Packages

No packages published