You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shellwords provides functions to manipulate strings according to the word parsing rules of the UNIX Bourne shell. It is based on [the Ruby module of the same name](http://www.ruby-doc.org/stdlib-1.9.3/libdoc/shellwords/rdoc/Shellwords.html).
3
+
Shellwords provides functions to manipulate strings according to the word parsing rules of the UNIX Bourne shell. It is based on [the Ruby module of the same name](https://docs.ruby-lang.org/en/3.1/Shellwords.html).
4
4
5
5
## Installation
6
6
7
-
Add "shellwords" to your `package.json` file and run `npm install`.
7
+
With npm:
8
+
9
+
```
10
+
npm install shellwords
11
+
```
12
+
13
+
With Yarn:
14
+
15
+
```
16
+
yarn add shellwords
17
+
```
18
+
19
+
## API
20
+
21
+
Shellwords exports the following functions, shown here in the TypeScript declaration file format.
22
+
23
+
```typescript
24
+
/**
25
+
* Splits a string into an array of tokens in the same way the UNIX Bourne shell does.
0 commit comments