Skip to content

Commit dfa4cab

Browse files
committed
docs: update output examples
1 parent c209e98 commit dfa4cab

File tree

2 files changed

+21
-50
lines changed

2 files changed

+21
-50
lines changed

docs/lib/content/commands/npm-profile.md

+11-22
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,17 @@ support this interface.
1717
* `npm profile get [<property>]`: Display all of the properties of your
1818
profile, or one or more specific properties. It looks like:
1919

20-
```bash
21-
+-----------------+---------------------------+
22-
| name | example |
23-
+-----------------+---------------------------+
24-
| email | [email protected] (verified) |
25-
+-----------------+---------------------------+
26-
| two factor auth | auth-and-writes |
27-
+-----------------+---------------------------+
28-
| fullname | Example User |
29-
+-----------------+---------------------------+
30-
| homepage | |
31-
+-----------------+---------------------------+
32-
| freenode | |
33-
+-----------------+---------------------------+
34-
| twitter | |
35-
+-----------------+---------------------------+
36-
| github | |
37-
+-----------------+---------------------------+
38-
| created | 2015-02-26T01:38:35.892Z |
39-
+-----------------+---------------------------+
40-
| updated | 2017-10-02T21:29:45.922Z |
41-
+-----------------+---------------------------+
20+
```
21+
name: example
22+
email: [email protected] (verified)
23+
two-factor auth: auth-and-writes
24+
fullname: Example User
25+
homepage:
26+
freenode:
27+
twitter:
28+
github:
29+
created: 2015-02-26T01:38:35.892Z
30+
updated: 2017-10-02T21:29:45.922Z
4231
```
4332

4433
* `npm profile set <property> <value>`: Set the value of a profile

docs/lib/content/commands/npm-token.md

+10-28
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,14 @@ This lets you list, create and revoke authentication tokens.
1616
Shows a table of all active authentication tokens. You can request
1717
this as JSON with `--json` or tab-separated values with `--parseable`.
1818

19-
```bash
20-
+--------+---------+------------+----------+----------------+
21-
| id | token | created | read-only | CIDR whitelist |
22-
+--------+---------+------------+----------+----------------+
23-
| 7f3134 | 1fa9ba… | 2017-10-02 | yes | |
24-
+--------+---------+------------+----------+----------------+
25-
| c03241 | af7aef… | 2017-10-02 | no | 192.168.0.1/24 |
26-
+--------+---------+------------+----------+----------------+
27-
| e0cf92 | 3a436a… | 2017-10-02 | no | |
28-
+--------+---------+------------+----------+----------------+
29-
| 63eb9d | 74ef35… | 2017-09-28 | no | |
30-
+--------+---------+------------+----------+----------------+
31-
| 2daaa8 | cbad5f… | 2017-09-26 | no | |
32-
+--------+---------+------------+----------+----------------+
33-
| 68c2fe | 127e51… | 2017-09-23 | no | |
34-
+--------+---------+------------+----------+----------------+
35-
| 6334e1 | 1dadd1… | 2017-09-23 | no | |
36-
+--------+---------+------------+----------+----------------+
19+
```
20+
Read only token npm_1f… with id 7f3134 created 2017-10-21
21+
22+
Publish token npm_af… with id c03241 created 2017-10-02
23+
with IP Whitelist: 192.168.0.1/24
24+
25+
Publish token npm_… with id e0cf92 created 2017-10-02
26+
3727
```
3828

3929
* `npm token create [--read-only] [--cidr=<cidr-ranges>]`:
@@ -49,16 +39,8 @@ This lets you list, create and revoke authentication tokens.
4939
website](https://docs.npmjs.com/creating-and-viewing-access-tokens)
5040
for more information on generating automation tokens.
5141

52-
```bash
53-
+----------------+--------------------------------------+
54-
| token | a73c9572-f1b9-8983-983d-ba3ac3cc913d |
55-
+----------------+--------------------------------------+
56-
| cidr_whitelist | |
57-
+----------------+--------------------------------------+
58-
| readonly | false |
59-
+----------------+--------------------------------------+
60-
| created | 2017-10-02T07:52:24.838Z |
61-
+----------------+--------------------------------------+
42+
```
43+
Created publish token a73c9572-f1b9-8983-983d-ba3ac3cc913d
6244
```
6345

6446
* `npm token revoke <token|id>`:

0 commit comments

Comments
 (0)