├── .clang-complete
├── .gitignore
├── LICENSE
├── README.md
├── binding.gyp
├── cppsrc
├── StubWifiInfo.cpp
├── WifiInfo.h
├── WifiInfo.mm
├── WindowsWifiInfo.cpp
└── main.cpp
├── node_wifi_info.d.ts
├── node_wifi_info.js
├── package-lock.json
├── package.json
├── src
├── linux.js
└── wifiInfo.js
├── test
└── index.js
└── tsconfig.json
/.clang-complete:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bytedance/node-wifi-info/9824d0c55a13d7addd1b19f28a6dfb75442b355d/.clang-complete
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # npm
2 | node_modules
3 | build
4 | *.log
5 |
6 | dist
7 |
8 | # IntelliJ
9 | *.iml
10 | *.ipr
11 | *.iws
12 | .idea/
13 |
14 | # VSCode
15 | .vscode/
16 |
17 | #macOS Trash
18 | .DS_Store
19 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 |
2 | Apache License
3 | Version 2.0, January 2004
4 | http://www.apache.org/licenses/
5 |
6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7 |
8 | 1. Definitions.
9 |
10 | "License" shall mean the terms and conditions for use, reproduction,
11 | and distribution as defined by Sections 1 through 9 of this document.
12 |
13 | "Licensor" shall mean the copyright owner or entity authorized by
14 | the copyright owner that is granting the License.
15 |
16 | "Legal Entity" shall mean the union of the acting entity and all
17 | other entities that control, are controlled by, or are under common
18 | control with that entity. For the purposes of this definition,
19 | "control" means (i) the power, direct or indirect, to cause the
20 | direction or management of such entity, whether by contract or
21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
22 | outstanding shares, or (iii) beneficial ownership of such entity.
23 |
24 | "You" (or "Your") shall mean an individual or Legal Entity
25 | exercising permissions granted by this License.
26 |
27 | "Source" form shall mean the preferred form for making modifications,
28 | including but not limited to software source code, documentation
29 | source, and configuration files.
30 |
31 | "Object" form shall mean any form resulting from mechanical
32 | transformation or translation of a Source form, including but
33 | not limited to compiled object code, generated documentation,
34 | and conversions to other media types.
35 |
36 | "Work" shall mean the work of authorship, whether in Source or
37 | Object form, made available under the License, as indicated by a
38 | copyright notice that is included in or attached to the work
39 | (an example is provided in the Appendix below).
40 |
41 | "Derivative Works" shall mean any work, whether in Source or Object
42 | form, that is based on (or derived from) the Work and for which the
43 | editorial revisions, annotations, elaborations, or other modifications
44 | represent, as a whole, an original work of authorship. For the purposes
45 | of this License, Derivative Works shall not include works that remain
46 | separable from, or merely link (or bind by name) to the interfaces of,
47 | the Work and Derivative Works thereof.
48 |
49 | "Contribution" shall mean any work of authorship, including
50 | the original version of the Work and any modifications or additions
51 | to that Work or Derivative Works thereof, that is intentionally
52 | submitted to Licensor for inclusion in the Work by the copyright owner
53 | or by an individual or Legal Entity authorized to submit on behalf of
54 | the copyright owner. For the purposes of this definition, "submitted"
55 | means any form of electronic, verbal, or written communication sent
56 | to the Licensor or its representatives, including but not limited to
57 | communication on electronic mailing lists, source code control systems,
58 | and issue tracking systems that are managed by, or on behalf of, the
59 | Licensor for the purpose of discussing and improving the Work, but
60 | excluding communication that is conspicuously marked or otherwise
61 | designated in writing by the copyright owner as "Not a Contribution."
62 |
63 | "Contributor" shall mean Licensor and any individual or Legal Entity
64 | on behalf of whom a Contribution has been received by Licensor and
65 | subsequently incorporated within the Work.
66 |
67 | 2. Grant of Copyright License. Subject to the terms and conditions of
68 | this License, each Contributor hereby grants to You a perpetual,
69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70 | copyright license to reproduce, prepare Derivative Works of,
71 | publicly display, publicly perform, sublicense, and distribute the
72 | Work and such Derivative Works in Source or Object form.
73 |
74 | 3. Grant of Patent License. Subject to the terms and conditions of
75 | this License, each Contributor hereby grants to You a perpetual,
76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77 | (except as stated in this section) patent license to make, have made,
78 | use, offer to sell, sell, import, and otherwise transfer the Work,
79 | where such license applies only to those patent claims licensable
80 | by such Contributor that are necessarily infringed by their
81 | Contribution(s) alone or by combination of their Contribution(s)
82 | with the Work to which such Contribution(s) was submitted. If You
83 | institute patent litigation against any entity (including a
84 | cross-claim or counterclaim in a lawsuit) alleging that the Work
85 | or a Contribution incorporated within the Work constitutes direct
86 | or contributory patent infringement, then any patent licenses
87 | granted to You under this License for that Work shall terminate
88 | as of the date such litigation is filed.
89 |
90 | 4. Redistribution. You may reproduce and distribute copies of the
91 | Work or Derivative Works thereof in any medium, with or without
92 | modifications, and in Source or Object form, provided that You
93 | meet the following conditions:
94 |
95 | (a) You must give any other recipients of the Work or
96 | Derivative Works a copy of this License; and
97 |
98 | (b) You must cause any modified files to carry prominent notices
99 | stating that You changed the files; and
100 |
101 | (c) You must retain, in the Source form of any Derivative Works
102 | that You distribute, all copyright, patent, trademark, and
103 | attribution notices from the Source form of the Work,
104 | excluding those notices that do not pertain to any part of
105 | the Derivative Works; and
106 |
107 | (d) If the Work includes a "NOTICE" text file as part of its
108 | distribution, then any Derivative Works that You distribute must
109 | include a readable copy of the attribution notices contained
110 | within such NOTICE file, excluding those notices that do not
111 | pertain to any part of the Derivative Works, in at least one
112 | of the following places: within a NOTICE text file distributed
113 | as part of the Derivative Works; within the Source form or
114 | documentation, if provided along with the Derivative Works; or,
115 | within a display generated by the Derivative Works, if and
116 | wherever such third-party notices normally appear. The contents
117 | of the NOTICE file are for informational purposes only and
118 | do not modify the License. You may add Your own attribution
119 | notices within Derivative Works that You distribute, alongside
120 | or as an addendum to the NOTICE text from the Work, provided
121 | that such additional attribution notices cannot be construed
122 | as modifying the License.
123 |
124 | You may add Your own copyright statement to Your modifications and
125 | may provide additional or different license terms and conditions
126 | for use, reproduction, or distribution of Your modifications, or
127 | for any such Derivative Works as a whole, provided Your use,
128 | reproduction, and distribution of the Work otherwise complies with
129 | the conditions stated in this License.
130 |
131 | 5. Submission of Contributions. Unless You explicitly state otherwise,
132 | any Contribution intentionally submitted for inclusion in the Work
133 | by You to the Licensor shall be under the terms and conditions of
134 | this License, without any additional terms or conditions.
135 | Notwithstanding the above, nothing herein shall supersede or modify
136 | the terms of any separate license agreement you may have executed
137 | with Licensor regarding such Contributions.
138 |
139 | 6. Trademarks. This License does not grant permission to use the trade
140 | names, trademarks, service marks, or product names of the Licensor,
141 | except as required for reasonable and customary use in describing the
142 | origin of the Work and reproducing the content of the NOTICE file.
143 |
144 | 7. Disclaimer of Warranty. Unless required by applicable law or
145 | agreed to in writing, Licensor provides the Work (and each
146 | Contributor provides its Contributions) on an "AS IS" BASIS,
147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148 | implied, including, without limitation, any warranties or conditions
149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150 | PARTICULAR PURPOSE. You are solely responsible for determining the
151 | appropriateness of using or redistributing the Work and assume any
152 | risks associated with Your exercise of permissions under this License.
153 |
154 | 8. Limitation of Liability. In no event and under no legal theory,
155 | whether in tort (including negligence), contract, or otherwise,
156 | unless required by applicable law (such as deliberate and grossly
157 | negligent acts) or agreed to in writing, shall any Contributor be
158 | liable to You for damages, including any direct, indirect, special,
159 | incidental, or consequential damages of any character arising as a
160 | result of this License or out of the use or inability to use the
161 | Work (including but not limited to damages for loss of goodwill,
162 | work stoppage, computer failure or malfunction, or any and all
163 | other commercial damages or losses), even if such Contributor
164 | has been advised of the possibility of such damages.
165 |
166 | 9. Accepting Warranty or Additional Liability. While redistributing
167 | the Work or Derivative Works thereof, You may choose to offer,
168 | and charge a fee for, acceptance of support, warranty, indemnity,
169 | or other liability obligations and/or rights consistent with this
170 | License. However, in accepting such obligations, You may act only
171 | on Your own behalf and on Your sole responsibility, not on behalf
172 | of any other Contributor, and only if You agree to indemnify,
173 | defend, and hold each Contributor harmless for any liability
174 | incurred by, or claims asserted against, such Contributor by reason
175 | of your accepting any such warranty or additional liability.
176 |
177 | END OF TERMS AND CONDITIONS
178 |
179 | Copyright 2019 Yaotian Feng
180 |
181 | Licensed under the Apache License, Version 2.0 (the "License");
182 | you may not use this file except in compliance with the License.
183 | You may obtain a copy of the License at
184 |
185 | http://www.apache.org/licenses/LICENSE-2.0
186 |
187 | Unless required by applicable law or agreed to in writing, software
188 | distributed under the License is distributed on an "AS IS" BASIS,
189 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190 | See the License for the specific language governing permissions and
191 | limitations under the License.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # node-wifi-info
2 |
3 | ## What is this?
4 | The `node-wifi-info` module allows macOS, Windows, and Linux1 users to get information about the currently connected wifi including SSID, BSSID, signalStrength(dBm) and security status.
5 |
6 | 1 Linux support right now is limited. Although full feature is provided, the underlying implementation is quite slow. Thus the performance is not comparable to the windows and macOS module.
7 |
8 | ## FAQ
9 | ### Why write this?
10 | During the process of locating this package, you might have stumbled upon the `node-wifi` module. Why did I build this when there is a package already available? Although it did provide all the feature I wanted, there are a few things that could be improved: namely the underlying implementation is not stable and slow. Especially for Windows and macOS. As it directly invoking system commands and parsing the output from it; however, as those command-line tools are designed for end user, not for programs, the output format could change without notice and rendering the module broken.
11 |
12 | Although this module is significantly faster on macOS and Windows, due to the use of native APIs from respective operating system. There are definitely certain advantages that node-wifi has over this, namely not having any native modules thus reducing chances of running into problems when you need to cross-compile
13 |
14 | ## Performance compared to node-wifi
15 | *Only Windows and macOS performace is compared, as our underlying Linux implementation is not siginificantly different from* `node-wifi`.
16 |
17 | *The following results are averaged from 1000 invocations at random intervals between 0-10 seconds*
18 |
19 | | fetch connected wifi info (average invocation time) | Windows | macOS |
20 | |-----------------------------------------------------|---------|---------|
21 | | node-wifi | 69.99ms | 16.58ms |
22 | | node-wifi-info (this module) | 0.35ms | 2.9ms |
23 | | improvement | ~200x | ~5.7x |
24 |
25 | # License
26 | Licensed under the Apache License, Version 2.0 (the "License");
27 | you may not use this software except in compliance with the License.
28 | You may obtain a copy of the License at
29 |
30 | http://www.apache.org/licenses/LICENSE-2.0
31 |
32 | Unless required by applicable law or agreed to in writing, software
33 | distributed under the License is distributed on an "AS IS" BASIS,
34 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
35 | See the License for the specific language governing permissions and
36 | limitations under the License.
37 |
38 | # Contribution
39 | Pull Requests are of course welcome! Feel free to help implementing the Linux native API. Feel free to submit bug reports and any issue you find while using this module. Any sugesstions on the Linux implementation would be greatly appreciated.
--------------------------------------------------------------------------------
/binding.gyp:
--------------------------------------------------------------------------------
1 | {
2 | "targets":[{
3 | "target_name": "node_wifi_info",
4 | "cflags!": ["-fno-exceptions"],
5 | "cflags_cc!": ["-fno-exceptions"],
6 | "include_dirs": [
7 | "
2 |
3 | namespace nodewifiinfo {
4 | typedef struct {
5 | std::string ssid;
6 | std::string bssid;
7 | bool secure;
8 | int32_t strength;
9 | } WiFiInfo;
10 | WiFiInfo getWiFiInfo();
11 | }
--------------------------------------------------------------------------------
/cppsrc/WifiInfo.mm:
--------------------------------------------------------------------------------
1 | #include "WifiInfo.h"
2 | #include
3 | #include
4 |
5 | nodewifiinfo::WiFiInfo nodewifiinfo::getWiFiInfo() {
6 | nodewifiinfo::WiFiInfo info = {};
7 | @autoreleasepool {
8 | CWWiFiClient* client = [CWWiFiClient sharedWiFiClient];
9 | if (client) {
10 | CWInterface *interface = [[CWWiFiClient sharedWiFiClient] interface];
11 | if (interface.ssid) {
12 | info.ssid = std::string([interface.ssid UTF8String]);
13 | info.bssid = std::string([interface.bssid UTF8String]);
14 | info.secure = (interface.security != kCWSecurityUnknown && interface.security != kCWSecurityNone);
15 | info.strength = (int32_t) interface.rssiValue;
16 | }
17 | }
18 | }
19 | return info;
20 | }
21 |
--------------------------------------------------------------------------------
/cppsrc/WindowsWifiInfo.cpp:
--------------------------------------------------------------------------------
1 | #include "WifiInfo.h"
2 | #include
3 | #include
4 |
5 | #pragma comment(lib, "wlanapi.lib")
6 |
7 | int test();
8 |
9 | HANDLE hClient = NULL;
10 | PWLAN_INTERFACE_INFO_LIST pIfList = NULL;
11 |
12 |
13 | nodewifiinfo::WiFiInfo nodewifiinfo::getWiFiInfo() {
14 | // WIN API Vars
15 | DWORD dwResult = 0;
16 | DWORD dwCurVersion = 0;
17 | // Return Value
18 | WiFiInfo info = {};
19 |
20 | // Get handle if null
21 | if (hClient == NULL) {
22 | dwResult = WlanOpenHandle(2, NULL, &dwCurVersion, &hClient);
23 | }
24 | if (dwResult != ERROR_SUCCESS) {
25 | printf("Error: Unable to open wlanHandle\n");
26 | hClient = NULL;
27 | return info;
28 | }
29 |
30 | // Enumerate interfaces (this only happens once for performance reason
31 | // Since hardware change during application runtime is unlikely)
32 | if (pIfList == NULL) {
33 | dwResult = WlanEnumInterfaces(hClient, NULL, &pIfList);
34 | }
35 | if (dwResult != ERROR_SUCCESS) {
36 | pIfList = NULL;
37 | return info;
38 | }
39 |
40 | DWORD connectInfoSize = sizeof(WLAN_CONNECTION_ATTRIBUTES);
41 | for (size_t i = 0; i < (int)pIfList->dwNumberOfItems; i++)
42 | {
43 | PWLAN_INTERFACE_INFO pIfInfo = (WLAN_INTERFACE_INFO*)& pIfList->InterfaceInfo[i];
44 | PWLAN_CONNECTION_ATTRIBUTES pConnectInfo = NULL;
45 | dwResult = WlanQueryInterface(hClient,
46 | &pIfInfo->InterfaceGuid,
47 | wlan_intf_opcode_current_connection,
48 | NULL,
49 | &connectInfoSize,
50 | (PVOID*)&pConnectInfo,
51 | NULL);
52 | if (dwResult != ERROR_SUCCESS) {
53 | continue;
54 | }
55 | if (pConnectInfo->isState != wlan_interface_state_connected) {
56 | WlanFreeMemory(pConnectInfo);
57 | continue;
58 | }
59 | //SSID
60 | info.ssid = std::string(
61 | (char*)pConnectInfo->wlanAssociationAttributes.dot11Ssid.ucSSID,
62 | pConnectInfo->wlanAssociationAttributes.dot11Ssid.uSSIDLength
63 | );
64 | // BSSID
65 | char bssidAddr[18];
66 | for (short i = 0; i < sizeof(pConnectInfo->wlanAssociationAttributes.dot11Bssid); i++) {
67 | sprintf((bssidAddr + (i * 3)),"%02x:", pConnectInfo->wlanAssociationAttributes.dot11Bssid[i]);
68 | }
69 | bssidAddr[17] = '\0';
70 | info.bssid = std::string(bssidAddr);
71 | // Secure
72 | info.secure = pConnectInfo->wlanSecurityAttributes.bSecurityEnabled;
73 | // Strength
74 | info.strength = (pConnectInfo->wlanAssociationAttributes.wlanSignalQuality / 2) - 100;
75 |
76 | //Free
77 | WlanFreeMemory(pConnectInfo);
78 |
79 | return info;
80 | }
81 | return info;
82 | }
83 |
--------------------------------------------------------------------------------
/cppsrc/main.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include "WifiInfo.h"
3 |
4 | Napi::Object getWiFiInfoWrapped(const Napi::CallbackInfo& info) {
5 | Napi::Env env = info.Env();
6 | Napi::Object returnObj = Napi::Object::New(env);
7 |
8 | nodewifiinfo::WiFiInfo wifiInfo = nodewifiinfo::getWiFiInfo();
9 |
10 | std::string bssid = wifiInfo.bssid;
11 | returnObj.Set("SSID", bssid.empty() ? env.Null() : Napi::String::New(env, wifiInfo.ssid));
12 | returnObj.Set("BSSID", bssid.empty() ? env.Null() : Napi::String::New(env, wifiInfo.bssid));
13 | returnObj.Set("secure", wifiInfo.secure);
14 | returnObj.Set("signalStrength", wifiInfo.strength);
15 |
16 | return returnObj;
17 | }
18 |
19 | Napi::Object InitAll(Napi::Env env, Napi::Object exports) {
20 | exports.Set(
21 | "getWifiInfo", Napi::Function::New(env, getWiFiInfoWrapped)
22 | );
23 |
24 | return exports;
25 | }
26 |
27 | NODE_API_MODULE(node_wifi_info, InitAll);
28 |
--------------------------------------------------------------------------------
/node_wifi_info.d.ts:
--------------------------------------------------------------------------------
1 | declare interface WifiInfo {
2 | SSID: string;
3 | BSSID: string;
4 | secure: boolean;
5 | signalStrength: number;
6 | }
7 |
8 | declare const _default: {
9 | getWifiInfo(): WifiInfo;
10 | };
11 |
12 | export = _default;
13 |
--------------------------------------------------------------------------------
/node_wifi_info.js:
--------------------------------------------------------------------------------
1 | const os = require('os')
2 | const linuxModule = require('./src/linux')
3 | const nodeWifiModule = require('bindings')('node_wifi_info.node')
4 |
5 | module.exports = {
6 | getWifiInfo() {
7 | const platform = os.platform()
8 | switch (platform) {
9 | case 'win32':
10 | case 'darwin':
11 | return nodeWifiModule.getWifiInfo()
12 | case 'linux':
13 | return linuxModule.getWiFiInfoLinux()
14 | default:
15 | throw new Error(`platform '${platform}' is currently unsupported by node-wifi-info.`)
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "node-wifi-info",
3 | "version": "1.0.1",
4 | "lockfileVersion": 1,
5 | "requires": true,
6 | "dependencies": {
7 | "abbrev": {
8 | "version": "1.1.1",
9 | "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
10 | "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
11 | "dev": true
12 | },
13 | "ajv": {
14 | "version": "6.10.0",
15 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.0.tgz",
16 | "integrity": "sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==",
17 | "dev": true,
18 | "requires": {
19 | "fast-deep-equal": "^2.0.1",
20 | "fast-json-stable-stringify": "^2.0.0",
21 | "json-schema-traverse": "^0.4.1",
22 | "uri-js": "^4.2.2"
23 | }
24 | },
25 | "ansi-escapes": {
26 | "version": "1.4.0",
27 | "resolved": "https://registry.npm.taobao.org/ansi-escapes/download/ansi-escapes-1.4.0.tgz",
28 | "integrity": "sha1-06ioOzGapneTZisT52HHkRQiMG4=",
29 | "dev": true
30 | },
31 | "ansi-regex": {
32 | "version": "2.1.1",
33 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
34 | "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
35 | "dev": true
36 | },
37 | "ansi-styles": {
38 | "version": "2.2.1",
39 | "resolved": "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-2.2.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-styles%2Fdownload%2Fansi-styles-2.2.1.tgz",
40 | "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=",
41 | "dev": true
42 | },
43 | "aproba": {
44 | "version": "1.2.0",
45 | "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz",
46 | "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==",
47 | "dev": true
48 | },
49 | "are-we-there-yet": {
50 | "version": "1.1.5",
51 | "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz",
52 | "integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==",
53 | "dev": true,
54 | "requires": {
55 | "delegates": "^1.0.0",
56 | "readable-stream": "^2.0.6"
57 | }
58 | },
59 | "asn1": {
60 | "version": "0.2.4",
61 | "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz",
62 | "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==",
63 | "dev": true,
64 | "requires": {
65 | "safer-buffer": "~2.1.0"
66 | }
67 | },
68 | "assert-plus": {
69 | "version": "1.0.0",
70 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
71 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=",
72 | "dev": true
73 | },
74 | "asynckit": {
75 | "version": "0.4.0",
76 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
77 | "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=",
78 | "dev": true
79 | },
80 | "aws-sign2": {
81 | "version": "0.7.0",
82 | "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz",
83 | "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=",
84 | "dev": true
85 | },
86 | "aws4": {
87 | "version": "1.8.0",
88 | "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz",
89 | "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==",
90 | "dev": true
91 | },
92 | "babel-polyfill": {
93 | "version": "6.26.0",
94 | "resolved": "https://registry.npm.taobao.org/babel-polyfill/download/babel-polyfill-6.26.0.tgz",
95 | "integrity": "sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM=",
96 | "dev": true,
97 | "requires": {
98 | "babel-runtime": "^6.26.0",
99 | "core-js": "^2.5.0",
100 | "regenerator-runtime": "^0.10.5"
101 | }
102 | },
103 | "babel-runtime": {
104 | "version": "6.26.0",
105 | "resolved": "https://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
106 | "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=",
107 | "dev": true,
108 | "requires": {
109 | "core-js": "^2.4.0",
110 | "regenerator-runtime": "^0.11.0"
111 | },
112 | "dependencies": {
113 | "regenerator-runtime": {
114 | "version": "0.11.1",
115 | "resolved": "https://registry.npm.taobao.org/regenerator-runtime/download/regenerator-runtime-0.11.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fregenerator-runtime%2Fdownload%2Fregenerator-runtime-0.11.1.tgz",
116 | "integrity": "sha1-vgWtf5v30i4Fb5cmzuUBf78Z4uk=",
117 | "dev": true
118 | }
119 | }
120 | },
121 | "balanced-match": {
122 | "version": "1.0.0",
123 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
124 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
125 | "dev": true
126 | },
127 | "bcrypt-pbkdf": {
128 | "version": "1.0.2",
129 | "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",
130 | "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=",
131 | "dev": true,
132 | "requires": {
133 | "tweetnacl": "^0.14.3"
134 | }
135 | },
136 | "bindings": {
137 | "version": "1.5.0",
138 | "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz",
139 | "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==",
140 | "requires": {
141 | "file-uri-to-path": "1.0.0"
142 | }
143 | },
144 | "brace-expansion": {
145 | "version": "1.1.11",
146 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
147 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
148 | "dev": true,
149 | "requires": {
150 | "balanced-match": "^1.0.0",
151 | "concat-map": "0.0.1"
152 | }
153 | },
154 | "caseless": {
155 | "version": "0.12.0",
156 | "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
157 | "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=",
158 | "dev": true
159 | },
160 | "cash-rm": {
161 | "version": "0.2.0",
162 | "resolved": "https://registry.npm.taobao.org/cash-rm/download/cash-rm-0.2.0.tgz",
163 | "integrity": "sha1-rbi/kK/O2IeaksMQkpj9yPCiuSI=",
164 | "dev": true,
165 | "requires": {
166 | "glob": "^6.0.4",
167 | "vorpal": "^1.10.8",
168 | "vorpal-autocomplete-fs": "0.0.3"
169 | },
170 | "dependencies": {
171 | "glob": {
172 | "version": "6.0.4",
173 | "resolved": "https://registry.npm.taobao.org/glob/download/glob-6.0.4.tgz",
174 | "integrity": "sha1-DwiGD2oVUSey+t1PnOJLGqtuTSI=",
175 | "dev": true,
176 | "requires": {
177 | "inflight": "^1.0.4",
178 | "inherits": "2",
179 | "minimatch": "2 || 3",
180 | "once": "^1.3.0",
181 | "path-is-absolute": "^1.0.0"
182 | }
183 | }
184 | }
185 | },
186 | "chalk": {
187 | "version": "1.1.3",
188 | "resolved": "https://registry.npm.taobao.org/chalk/download/chalk-1.1.3.tgz",
189 | "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
190 | "dev": true,
191 | "requires": {
192 | "ansi-styles": "^2.2.1",
193 | "escape-string-regexp": "^1.0.2",
194 | "has-ansi": "^2.0.0",
195 | "strip-ansi": "^3.0.0",
196 | "supports-color": "^2.0.0"
197 | }
198 | },
199 | "chownr": {
200 | "version": "1.1.1",
201 | "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.1.tgz",
202 | "integrity": "sha512-j38EvO5+LHX84jlo6h4UzmOwi0UgW61WRyPtJz4qaadK5eY3BTS5TY/S1Stc3Uk2lIM6TPevAlULiEJwie860g==",
203 | "dev": true
204 | },
205 | "cli-cursor": {
206 | "version": "1.0.2",
207 | "resolved": "https://registry.npm.taobao.org/cli-cursor/download/cli-cursor-1.0.2.tgz",
208 | "integrity": "sha1-ZNo/fValRBLll5S9Ytw1KV6PKYc=",
209 | "dev": true,
210 | "requires": {
211 | "restore-cursor": "^1.0.1"
212 | }
213 | },
214 | "cli-width": {
215 | "version": "1.1.1",
216 | "resolved": "https://registry.npm.taobao.org/cli-width/download/cli-width-1.1.1.tgz",
217 | "integrity": "sha1-pNKT72frt7iNSk1CwMzwDE0eNm0=",
218 | "dev": true
219 | },
220 | "code-point-at": {
221 | "version": "1.1.0",
222 | "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz",
223 | "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=",
224 | "dev": true
225 | },
226 | "combined-stream": {
227 | "version": "1.0.8",
228 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
229 | "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
230 | "dev": true,
231 | "requires": {
232 | "delayed-stream": "~1.0.0"
233 | }
234 | },
235 | "concat-map": {
236 | "version": "0.0.1",
237 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
238 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
239 | "dev": true
240 | },
241 | "console-control-strings": {
242 | "version": "1.1.0",
243 | "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
244 | "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=",
245 | "dev": true
246 | },
247 | "core-js": {
248 | "version": "2.6.9",
249 | "resolved": "https://registry.npm.taobao.org/core-js/download/core-js-2.6.9.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcore-js%2Fdownload%2Fcore-js-2.6.9.tgz",
250 | "integrity": "sha1-a0shRiDINBUuF5Mjcn/Bl0GwhPI=",
251 | "dev": true
252 | },
253 | "core-util-is": {
254 | "version": "1.0.2",
255 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
256 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=",
257 | "dev": true
258 | },
259 | "dashdash": {
260 | "version": "1.14.1",
261 | "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
262 | "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",
263 | "dev": true,
264 | "requires": {
265 | "assert-plus": "^1.0.0"
266 | }
267 | },
268 | "delayed-stream": {
269 | "version": "1.0.0",
270 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
271 | "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=",
272 | "dev": true
273 | },
274 | "delegates": {
275 | "version": "1.0.0",
276 | "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
277 | "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=",
278 | "dev": true
279 | },
280 | "ecc-jsbn": {
281 | "version": "0.1.2",
282 | "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
283 | "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=",
284 | "dev": true,
285 | "requires": {
286 | "jsbn": "~0.1.0",
287 | "safer-buffer": "^2.1.0"
288 | }
289 | },
290 | "escape-string-regexp": {
291 | "version": "1.0.5",
292 | "resolved": "https://registry.npm.taobao.org/escape-string-regexp/download/escape-string-regexp-1.0.5.tgz",
293 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=",
294 | "dev": true
295 | },
296 | "exit-hook": {
297 | "version": "1.1.1",
298 | "resolved": "https://registry.npm.taobao.org/exit-hook/download/exit-hook-1.1.1.tgz",
299 | "integrity": "sha1-8FyiM7SMBdVP/wd2XfhQfpXAL/g=",
300 | "dev": true
301 | },
302 | "extend": {
303 | "version": "3.0.2",
304 | "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
305 | "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",
306 | "dev": true
307 | },
308 | "extsprintf": {
309 | "version": "1.3.0",
310 | "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
311 | "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=",
312 | "dev": true
313 | },
314 | "fast-deep-equal": {
315 | "version": "2.0.1",
316 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz",
317 | "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=",
318 | "dev": true
319 | },
320 | "fast-json-stable-stringify": {
321 | "version": "2.0.0",
322 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz",
323 | "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=",
324 | "dev": true
325 | },
326 | "figures": {
327 | "version": "1.7.0",
328 | "resolved": "https://registry.npm.taobao.org/figures/download/figures-1.7.0.tgz",
329 | "integrity": "sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4=",
330 | "dev": true,
331 | "requires": {
332 | "escape-string-regexp": "^1.0.5",
333 | "object-assign": "^4.1.0"
334 | }
335 | },
336 | "file-uri-to-path": {
337 | "version": "1.0.0",
338 | "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",
339 | "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw=="
340 | },
341 | "forever-agent": {
342 | "version": "0.6.1",
343 | "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",
344 | "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=",
345 | "dev": true
346 | },
347 | "form-data": {
348 | "version": "2.3.3",
349 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz",
350 | "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==",
351 | "dev": true,
352 | "requires": {
353 | "asynckit": "^0.4.0",
354 | "combined-stream": "^1.0.6",
355 | "mime-types": "^2.1.12"
356 | }
357 | },
358 | "fs-minipass": {
359 | "version": "1.2.6",
360 | "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.6.tgz",
361 | "integrity": "sha512-crhvyXcMejjv3Z5d2Fa9sf5xLYVCF5O1c71QxbVnbLsmYMBEvDAftewesN/HhY03YRoA7zOMxjNGrF5svGaaeQ==",
362 | "dev": true,
363 | "requires": {
364 | "minipass": "^2.2.1"
365 | }
366 | },
367 | "fs.realpath": {
368 | "version": "1.0.0",
369 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
370 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
371 | "dev": true
372 | },
373 | "gauge": {
374 | "version": "2.7.4",
375 | "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz",
376 | "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=",
377 | "dev": true,
378 | "requires": {
379 | "aproba": "^1.0.3",
380 | "console-control-strings": "^1.0.0",
381 | "has-unicode": "^2.0.0",
382 | "object-assign": "^4.1.0",
383 | "signal-exit": "^3.0.0",
384 | "string-width": "^1.0.1",
385 | "strip-ansi": "^3.0.1",
386 | "wide-align": "^1.1.0"
387 | }
388 | },
389 | "getpass": {
390 | "version": "0.1.7",
391 | "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
392 | "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
393 | "dev": true,
394 | "requires": {
395 | "assert-plus": "^1.0.0"
396 | }
397 | },
398 | "glob": {
399 | "version": "7.1.4",
400 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz",
401 | "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==",
402 | "dev": true,
403 | "requires": {
404 | "fs.realpath": "^1.0.0",
405 | "inflight": "^1.0.4",
406 | "inherits": "2",
407 | "minimatch": "^3.0.4",
408 | "once": "^1.3.0",
409 | "path-is-absolute": "^1.0.0"
410 | }
411 | },
412 | "graceful-fs": {
413 | "version": "4.1.15",
414 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz",
415 | "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==",
416 | "dev": true
417 | },
418 | "har-schema": {
419 | "version": "2.0.0",
420 | "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",
421 | "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=",
422 | "dev": true
423 | },
424 | "har-validator": {
425 | "version": "5.1.3",
426 | "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz",
427 | "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==",
428 | "dev": true,
429 | "requires": {
430 | "ajv": "^6.5.5",
431 | "har-schema": "^2.0.0"
432 | }
433 | },
434 | "has-ansi": {
435 | "version": "2.0.0",
436 | "resolved": "https://registry.npm.taobao.org/has-ansi/download/has-ansi-2.0.0.tgz",
437 | "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=",
438 | "dev": true,
439 | "requires": {
440 | "ansi-regex": "^2.0.0"
441 | }
442 | },
443 | "has-unicode": {
444 | "version": "2.0.1",
445 | "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
446 | "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=",
447 | "dev": true
448 | },
449 | "http-signature": {
450 | "version": "1.2.0",
451 | "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
452 | "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=",
453 | "dev": true,
454 | "requires": {
455 | "assert-plus": "^1.0.0",
456 | "jsprim": "^1.2.2",
457 | "sshpk": "^1.7.0"
458 | }
459 | },
460 | "in-publish": {
461 | "version": "2.0.0",
462 | "resolved": "https://registry.npm.taobao.org/in-publish/download/in-publish-2.0.0.tgz",
463 | "integrity": "sha1-4g/146KvwmkDILbcVSaCqcf631E=",
464 | "dev": true
465 | },
466 | "inflight": {
467 | "version": "1.0.6",
468 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
469 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
470 | "dev": true,
471 | "requires": {
472 | "once": "^1.3.0",
473 | "wrappy": "1"
474 | }
475 | },
476 | "inherits": {
477 | "version": "2.0.3",
478 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
479 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=",
480 | "dev": true
481 | },
482 | "inquirer": {
483 | "version": "0.11.0",
484 | "resolved": "https://registry.npm.taobao.org/inquirer/download/inquirer-0.11.0.tgz",
485 | "integrity": "sha1-dEi/qSQJKvMR1HFzu6uZDK4rsCc=",
486 | "dev": true,
487 | "requires": {
488 | "ansi-escapes": "^1.1.0",
489 | "ansi-regex": "^2.0.0",
490 | "chalk": "^1.0.0",
491 | "cli-cursor": "^1.0.1",
492 | "cli-width": "^1.0.1",
493 | "figures": "^1.3.5",
494 | "lodash": "^3.3.1",
495 | "readline2": "^1.0.1",
496 | "run-async": "^0.1.0",
497 | "rx-lite": "^3.1.2",
498 | "strip-ansi": "^3.0.0",
499 | "through": "^2.3.6"
500 | },
501 | "dependencies": {
502 | "lodash": {
503 | "version": "3.10.1",
504 | "resolved": "https://registry.npm.taobao.org/lodash/download/lodash-3.10.1.tgz",
505 | "integrity": "sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=",
506 | "dev": true
507 | }
508 | }
509 | },
510 | "is-fullwidth-code-point": {
511 | "version": "1.0.0",
512 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
513 | "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
514 | "dev": true,
515 | "requires": {
516 | "number-is-nan": "^1.0.0"
517 | }
518 | },
519 | "is-typedarray": {
520 | "version": "1.0.0",
521 | "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
522 | "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=",
523 | "dev": true
524 | },
525 | "isarray": {
526 | "version": "1.0.0",
527 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
528 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
529 | "dev": true
530 | },
531 | "isexe": {
532 | "version": "2.0.0",
533 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
534 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=",
535 | "dev": true
536 | },
537 | "isstream": {
538 | "version": "0.1.2",
539 | "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
540 | "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=",
541 | "dev": true
542 | },
543 | "jsbn": {
544 | "version": "0.1.1",
545 | "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
546 | "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=",
547 | "dev": true
548 | },
549 | "json-schema": {
550 | "version": "0.2.3",
551 | "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
552 | "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=",
553 | "dev": true
554 | },
555 | "json-schema-traverse": {
556 | "version": "0.4.1",
557 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
558 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
559 | "dev": true
560 | },
561 | "json-stringify-safe": {
562 | "version": "5.0.1",
563 | "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
564 | "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=",
565 | "dev": true
566 | },
567 | "jsprim": {
568 | "version": "1.4.1",
569 | "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz",
570 | "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=",
571 | "dev": true,
572 | "requires": {
573 | "assert-plus": "1.0.0",
574 | "extsprintf": "1.3.0",
575 | "json-schema": "0.2.3",
576 | "verror": "1.10.0"
577 | }
578 | },
579 | "lodash": {
580 | "version": "4.17.11",
581 | "resolved": "https://registry.npm.taobao.org/lodash/download/lodash-4.17.11.tgz",
582 | "integrity": "sha1-s56mIp72B+zYniyN8SU2iRysm40=",
583 | "dev": true
584 | },
585 | "log-update": {
586 | "version": "1.0.2",
587 | "resolved": "https://registry.npm.taobao.org/log-update/download/log-update-1.0.2.tgz",
588 | "integrity": "sha1-GZKfZMQJPS0ucHWh2tivWcKWuNE=",
589 | "dev": true,
590 | "requires": {
591 | "ansi-escapes": "^1.0.0",
592 | "cli-cursor": "^1.0.2"
593 | }
594 | },
595 | "mime-db": {
596 | "version": "1.40.0",
597 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz",
598 | "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==",
599 | "dev": true
600 | },
601 | "mime-types": {
602 | "version": "2.1.24",
603 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.24.tgz",
604 | "integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==",
605 | "dev": true,
606 | "requires": {
607 | "mime-db": "1.40.0"
608 | }
609 | },
610 | "minimatch": {
611 | "version": "3.0.4",
612 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
613 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
614 | "dev": true,
615 | "requires": {
616 | "brace-expansion": "^1.1.7"
617 | }
618 | },
619 | "minimist": {
620 | "version": "0.0.8",
621 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
622 | "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=",
623 | "dev": true
624 | },
625 | "minipass": {
626 | "version": "2.3.5",
627 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.3.5.tgz",
628 | "integrity": "sha512-Gi1W4k059gyRbyVUZQ4mEqLm0YIUiGYfvxhF6SIlk3ui1WVxMTGfGdQ2SInh3PDrRTVvPKgULkpJtT4RH10+VA==",
629 | "dev": true,
630 | "requires": {
631 | "safe-buffer": "^5.1.2",
632 | "yallist": "^3.0.0"
633 | }
634 | },
635 | "minizlib": {
636 | "version": "1.2.1",
637 | "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-1.2.1.tgz",
638 | "integrity": "sha512-7+4oTUOWKg7AuL3vloEWekXY2/D20cevzsrNT2kGWm+39J9hGTCBv8VI5Pm5lXZ/o3/mdR4f8rflAPhnQb8mPA==",
639 | "dev": true,
640 | "requires": {
641 | "minipass": "^2.2.1"
642 | }
643 | },
644 | "mkdirp": {
645 | "version": "0.5.1",
646 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
647 | "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
648 | "dev": true,
649 | "requires": {
650 | "minimist": "0.0.8"
651 | }
652 | },
653 | "mute-stream": {
654 | "version": "0.0.5",
655 | "resolved": "https://registry.npm.taobao.org/mute-stream/download/mute-stream-0.0.5.tgz",
656 | "integrity": "sha1-j7+rsKmKJT0xhDMfno3rc3L6xsA=",
657 | "dev": true
658 | },
659 | "node-addon-api": {
660 | "version": "1.6.3",
661 | "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-1.6.3.tgz",
662 | "integrity": "sha512-FXWH6mqjWgU8ewuahp4spec8LkroFZK2NicOv6bNwZC3kcwZUI8LeZdG80UzTSLLhK4T7MsgNwlYDVRlDdfTDg=="
663 | },
664 | "node-gyp": {
665 | "version": "4.0.0",
666 | "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-4.0.0.tgz",
667 | "integrity": "sha512-2XiryJ8sICNo6ej8d0idXDEMKfVfFK7kekGCtJAuelGsYHQxhj13KTf95swTCN2dZ/4lTfZ84Fu31jqJEEgjWA==",
668 | "dev": true,
669 | "requires": {
670 | "glob": "^7.0.3",
671 | "graceful-fs": "^4.1.2",
672 | "mkdirp": "^0.5.0",
673 | "nopt": "2 || 3",
674 | "npmlog": "0 || 1 || 2 || 3 || 4",
675 | "osenv": "0",
676 | "request": "^2.87.0",
677 | "rimraf": "2",
678 | "semver": "~5.3.0",
679 | "tar": "^4.4.8",
680 | "which": "1"
681 | }
682 | },
683 | "node-localstorage": {
684 | "version": "0.6.0",
685 | "resolved": "https://registry.npm.taobao.org/node-localstorage/download/node-localstorage-0.6.0.tgz",
686 | "integrity": "sha1-RaBgHGky395mRKIzYfG+Fzx1068=",
687 | "dev": true
688 | },
689 | "nopt": {
690 | "version": "3.0.6",
691 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz",
692 | "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=",
693 | "dev": true,
694 | "requires": {
695 | "abbrev": "1"
696 | }
697 | },
698 | "npmlog": {
699 | "version": "4.1.2",
700 | "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz",
701 | "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==",
702 | "dev": true,
703 | "requires": {
704 | "are-we-there-yet": "~1.1.2",
705 | "console-control-strings": "~1.1.0",
706 | "gauge": "~2.7.3",
707 | "set-blocking": "~2.0.0"
708 | }
709 | },
710 | "number-is-nan": {
711 | "version": "1.0.1",
712 | "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz",
713 | "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=",
714 | "dev": true
715 | },
716 | "oauth-sign": {
717 | "version": "0.9.0",
718 | "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz",
719 | "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==",
720 | "dev": true
721 | },
722 | "object-assign": {
723 | "version": "4.1.1",
724 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
725 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
726 | "dev": true
727 | },
728 | "once": {
729 | "version": "1.4.0",
730 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
731 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
732 | "dev": true,
733 | "requires": {
734 | "wrappy": "1"
735 | }
736 | },
737 | "onetime": {
738 | "version": "1.1.0",
739 | "resolved": "https://registry.npm.taobao.org/onetime/download/onetime-1.1.0.tgz",
740 | "integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=",
741 | "dev": true
742 | },
743 | "os-homedir": {
744 | "version": "1.0.2",
745 | "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz",
746 | "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=",
747 | "dev": true
748 | },
749 | "os-tmpdir": {
750 | "version": "1.0.2",
751 | "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
752 | "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=",
753 | "dev": true
754 | },
755 | "osenv": {
756 | "version": "0.1.5",
757 | "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz",
758 | "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==",
759 | "dev": true,
760 | "requires": {
761 | "os-homedir": "^1.0.0",
762 | "os-tmpdir": "^1.0.0"
763 | }
764 | },
765 | "path-is-absolute": {
766 | "version": "1.0.1",
767 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
768 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
769 | "dev": true
770 | },
771 | "performance-now": {
772 | "version": "2.1.0",
773 | "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
774 | "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=",
775 | "dev": true
776 | },
777 | "process-nextick-args": {
778 | "version": "2.0.0",
779 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz",
780 | "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==",
781 | "dev": true
782 | },
783 | "psl": {
784 | "version": "1.1.32",
785 | "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.32.tgz",
786 | "integrity": "sha512-MHACAkHpihU/REGGPLj4sEfc/XKW2bheigvHO1dUqjaKigMp1C8+WLQYRGgeKFMsw5PMfegZcaN8IDXK/cD0+g==",
787 | "dev": true
788 | },
789 | "punycode": {
790 | "version": "2.1.1",
791 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
792 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==",
793 | "dev": true
794 | },
795 | "qs": {
796 | "version": "6.5.2",
797 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz",
798 | "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==",
799 | "dev": true
800 | },
801 | "readable-stream": {
802 | "version": "2.3.6",
803 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",
804 | "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==",
805 | "dev": true,
806 | "requires": {
807 | "core-util-is": "~1.0.0",
808 | "inherits": "~2.0.3",
809 | "isarray": "~1.0.0",
810 | "process-nextick-args": "~2.0.0",
811 | "safe-buffer": "~5.1.1",
812 | "string_decoder": "~1.1.1",
813 | "util-deprecate": "~1.0.1"
814 | }
815 | },
816 | "readline2": {
817 | "version": "1.0.1",
818 | "resolved": "https://registry.npm.taobao.org/readline2/download/readline2-1.0.1.tgz",
819 | "integrity": "sha1-QQWWCP/BVHV7cV2ZidGZ/783LjU=",
820 | "dev": true,
821 | "requires": {
822 | "code-point-at": "^1.0.0",
823 | "is-fullwidth-code-point": "^1.0.0",
824 | "mute-stream": "0.0.5"
825 | }
826 | },
827 | "regenerator-runtime": {
828 | "version": "0.10.5",
829 | "resolved": "https://registry.npm.taobao.org/regenerator-runtime/download/regenerator-runtime-0.10.5.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fregenerator-runtime%2Fdownload%2Fregenerator-runtime-0.10.5.tgz",
830 | "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=",
831 | "dev": true
832 | },
833 | "request": {
834 | "version": "2.88.0",
835 | "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz",
836 | "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==",
837 | "dev": true,
838 | "requires": {
839 | "aws-sign2": "~0.7.0",
840 | "aws4": "^1.8.0",
841 | "caseless": "~0.12.0",
842 | "combined-stream": "~1.0.6",
843 | "extend": "~3.0.2",
844 | "forever-agent": "~0.6.1",
845 | "form-data": "~2.3.2",
846 | "har-validator": "~5.1.0",
847 | "http-signature": "~1.2.0",
848 | "is-typedarray": "~1.0.0",
849 | "isstream": "~0.1.2",
850 | "json-stringify-safe": "~5.0.1",
851 | "mime-types": "~2.1.19",
852 | "oauth-sign": "~0.9.0",
853 | "performance-now": "^2.1.0",
854 | "qs": "~6.5.2",
855 | "safe-buffer": "^5.1.2",
856 | "tough-cookie": "~2.4.3",
857 | "tunnel-agent": "^0.6.0",
858 | "uuid": "^3.3.2"
859 | }
860 | },
861 | "restore-cursor": {
862 | "version": "1.0.1",
863 | "resolved": "https://registry.npm.taobao.org/restore-cursor/download/restore-cursor-1.0.1.tgz",
864 | "integrity": "sha1-NGYfRohjJ/7SmRR5FSJS35LapUE=",
865 | "dev": true,
866 | "requires": {
867 | "exit-hook": "^1.0.0",
868 | "onetime": "^1.0.0"
869 | }
870 | },
871 | "rimraf": {
872 | "version": "2.6.3",
873 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz",
874 | "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==",
875 | "dev": true,
876 | "requires": {
877 | "glob": "^7.1.3"
878 | }
879 | },
880 | "run-async": {
881 | "version": "0.1.0",
882 | "resolved": "https://registry.npm.taobao.org/run-async/download/run-async-0.1.0.tgz",
883 | "integrity": "sha1-yK1KXhEGYeQCp9IbUw4AnyX444k=",
884 | "dev": true,
885 | "requires": {
886 | "once": "^1.3.0"
887 | }
888 | },
889 | "rx-lite": {
890 | "version": "3.1.2",
891 | "resolved": "https://registry.npm.taobao.org/rx-lite/download/rx-lite-3.1.2.tgz",
892 | "integrity": "sha1-Gc5QLKVyZl87ZHsQk5+X/RYV8QI=",
893 | "dev": true
894 | },
895 | "safe-buffer": {
896 | "version": "5.1.2",
897 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
898 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
899 | "dev": true
900 | },
901 | "safer-buffer": {
902 | "version": "2.1.2",
903 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
904 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
905 | "dev": true
906 | },
907 | "semver": {
908 | "version": "5.3.0",
909 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz",
910 | "integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8=",
911 | "dev": true
912 | },
913 | "set-blocking": {
914 | "version": "2.0.0",
915 | "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
916 | "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=",
917 | "dev": true
918 | },
919 | "signal-exit": {
920 | "version": "3.0.2",
921 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz",
922 | "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=",
923 | "dev": true
924 | },
925 | "sshpk": {
926 | "version": "1.16.1",
927 | "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz",
928 | "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==",
929 | "dev": true,
930 | "requires": {
931 | "asn1": "~0.2.3",
932 | "assert-plus": "^1.0.0",
933 | "bcrypt-pbkdf": "^1.0.0",
934 | "dashdash": "^1.12.0",
935 | "ecc-jsbn": "~0.1.1",
936 | "getpass": "^0.1.1",
937 | "jsbn": "~0.1.0",
938 | "safer-buffer": "^2.0.2",
939 | "tweetnacl": "~0.14.0"
940 | }
941 | },
942 | "string-width": {
943 | "version": "1.0.2",
944 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
945 | "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
946 | "dev": true,
947 | "requires": {
948 | "code-point-at": "^1.0.0",
949 | "is-fullwidth-code-point": "^1.0.0",
950 | "strip-ansi": "^3.0.0"
951 | }
952 | },
953 | "string_decoder": {
954 | "version": "1.1.1",
955 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
956 | "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
957 | "dev": true,
958 | "requires": {
959 | "safe-buffer": "~5.1.0"
960 | }
961 | },
962 | "strip-ansi": {
963 | "version": "3.0.1",
964 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
965 | "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
966 | "dev": true,
967 | "requires": {
968 | "ansi-regex": "^2.0.0"
969 | }
970 | },
971 | "supports-color": {
972 | "version": "2.0.0",
973 | "resolved": "https://registry.npm.taobao.org/supports-color/download/supports-color-2.0.0.tgz",
974 | "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=",
975 | "dev": true
976 | },
977 | "tar": {
978 | "version": "4.4.9",
979 | "resolved": "https://registry.npmjs.org/tar/-/tar-4.4.9.tgz",
980 | "integrity": "sha512-xisFa7Q2i3HOgfn+nmnWLGHD6Tm23hxjkx6wwGmgxkJFr6wxwXnJOdJYcZjL453PSdF0+bemO03+flAzkIdLBQ==",
981 | "dev": true,
982 | "requires": {
983 | "chownr": "^1.1.1",
984 | "fs-minipass": "^1.2.5",
985 | "minipass": "^2.3.5",
986 | "minizlib": "^1.2.1",
987 | "mkdirp": "^0.5.0",
988 | "safe-buffer": "^5.1.2",
989 | "yallist": "^3.0.3"
990 | }
991 | },
992 | "through": {
993 | "version": "2.3.8",
994 | "resolved": "https://registry.npm.taobao.org/through/download/through-2.3.8.tgz",
995 | "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=",
996 | "dev": true
997 | },
998 | "tough-cookie": {
999 | "version": "2.4.3",
1000 | "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz",
1001 | "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==",
1002 | "dev": true,
1003 | "requires": {
1004 | "psl": "^1.1.24",
1005 | "punycode": "^1.4.1"
1006 | },
1007 | "dependencies": {
1008 | "punycode": {
1009 | "version": "1.4.1",
1010 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz",
1011 | "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=",
1012 | "dev": true
1013 | }
1014 | }
1015 | },
1016 | "tunnel-agent": {
1017 | "version": "0.6.0",
1018 | "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
1019 | "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
1020 | "dev": true,
1021 | "requires": {
1022 | "safe-buffer": "^5.0.1"
1023 | }
1024 | },
1025 | "tweetnacl": {
1026 | "version": "0.14.5",
1027 | "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",
1028 | "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=",
1029 | "dev": true
1030 | },
1031 | "typescript": {
1032 | "version": "3.5.1",
1033 | "resolved": "https://registry.npm.taobao.org/typescript/download/typescript-3.5.1.tgz",
1034 | "integrity": "sha1-unKmpgCyFYE5xd2IUPcA4jFGQgI=",
1035 | "dev": true
1036 | },
1037 | "uri-js": {
1038 | "version": "4.2.2",
1039 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz",
1040 | "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==",
1041 | "dev": true,
1042 | "requires": {
1043 | "punycode": "^2.1.0"
1044 | }
1045 | },
1046 | "util-deprecate": {
1047 | "version": "1.0.2",
1048 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
1049 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
1050 | "dev": true
1051 | },
1052 | "uuid": {
1053 | "version": "3.3.2",
1054 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz",
1055 | "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==",
1056 | "dev": true
1057 | },
1058 | "verror": {
1059 | "version": "1.10.0",
1060 | "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
1061 | "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
1062 | "dev": true,
1063 | "requires": {
1064 | "assert-plus": "^1.0.0",
1065 | "core-util-is": "1.0.2",
1066 | "extsprintf": "^1.2.0"
1067 | }
1068 | },
1069 | "vorpal": {
1070 | "version": "1.12.0",
1071 | "resolved": "https://registry.npm.taobao.org/vorpal/download/vorpal-1.12.0.tgz",
1072 | "integrity": "sha1-S+eypOSPj8/JzzZIxBnTEcUiFZ0=",
1073 | "dev": true,
1074 | "requires": {
1075 | "babel-polyfill": "^6.3.14",
1076 | "chalk": "^1.1.0",
1077 | "in-publish": "^2.0.0",
1078 | "inquirer": "0.11.0",
1079 | "lodash": "^4.5.1",
1080 | "log-update": "^1.0.2",
1081 | "minimist": "^1.2.0",
1082 | "node-localstorage": "^0.6.0",
1083 | "strip-ansi": "^3.0.0",
1084 | "wrap-ansi": "^2.0.0"
1085 | },
1086 | "dependencies": {
1087 | "minimist": {
1088 | "version": "1.2.0",
1089 | "resolved": "https://registry.npm.taobao.org/minimist/download/minimist-1.2.0.tgz",
1090 | "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
1091 | "dev": true
1092 | }
1093 | }
1094 | },
1095 | "vorpal-autocomplete-fs": {
1096 | "version": "0.0.3",
1097 | "resolved": "https://registry.npm.taobao.org/vorpal-autocomplete-fs/download/vorpal-autocomplete-fs-0.0.3.tgz",
1098 | "integrity": "sha1-15b3sr1A2LbdxkE69M/QFv9QnQE=",
1099 | "dev": true,
1100 | "requires": {
1101 | "chalk": "^1.1.1",
1102 | "strip-ansi": "^3.0.0"
1103 | }
1104 | },
1105 | "which": {
1106 | "version": "1.3.1",
1107 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
1108 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
1109 | "dev": true,
1110 | "requires": {
1111 | "isexe": "^2.0.0"
1112 | }
1113 | },
1114 | "wide-align": {
1115 | "version": "1.1.3",
1116 | "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz",
1117 | "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==",
1118 | "dev": true,
1119 | "requires": {
1120 | "string-width": "^1.0.2 || 2"
1121 | }
1122 | },
1123 | "wrap-ansi": {
1124 | "version": "2.1.0",
1125 | "resolved": "https://registry.npm.taobao.org/wrap-ansi/download/wrap-ansi-2.1.0.tgz",
1126 | "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=",
1127 | "dev": true,
1128 | "requires": {
1129 | "string-width": "^1.0.1",
1130 | "strip-ansi": "^3.0.1"
1131 | }
1132 | },
1133 | "wrappy": {
1134 | "version": "1.0.2",
1135 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
1136 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
1137 | "dev": true
1138 | },
1139 | "yallist": {
1140 | "version": "3.0.3",
1141 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.3.tgz",
1142 | "integrity": "sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A==",
1143 | "dev": true
1144 | }
1145 | }
1146 | }
1147 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "node-wifi-info",
3 | "version": "1.0.2",
4 | "description": "Node WiFi info with native support on macOS and Windows",
5 | "main": "node_wifi_info.js",
6 | "types": "node_wifi_info.d.ts",
7 | "keywords": [
8 | "wifi",
9 | "node-wifi",
10 | "native"
11 | ],
12 | "license": "Apache-2.0",
13 | "repository": {
14 | "type": "git",
15 | "url": "git://github.com/bytedance/node-wifi-info"
16 | },
17 | "author": "codetector",
18 | "scripts": {
19 | "build": "npm run build:native",
20 | "build:native": "node-gyp rebuild",
21 | "prepublish": "npm run build",
22 | "clean": "node-gyp clean && rm -r dist",
23 | "postinstall": "npm run build",
24 | "test": "node test/index.js"
25 | },
26 | "devDependencies": {
27 | "cash-rm": "^0.2.0",
28 | "node-gyp": "^4.0.0",
29 | "typescript": "^3.5.1"
30 | },
31 | "dependencies": {
32 | "bindings": "^1.5.0",
33 | "node-addon-api": "^1.6.3"
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/src/linux.js:
--------------------------------------------------------------------------------
1 | const WifiInfo = require('./wifiInfo')
2 |
3 | const { execSync } = require('child_process')
4 |
5 | const NMWiFiStringParseState = {
6 | INITIAL: 0,
7 | SSID: 1,
8 | BSSID: 2,
9 | SECURITY: 3,
10 | STRENGTH: 4
11 | }
12 |
13 | const StringParseEscapeState = {
14 | ESCAPE_NEXT: 0,
15 | NORMAL: 1
16 | }
17 |
18 | function getAndParseWifiInfo() {
19 | try {
20 | const rawData = execSync('nmcli -t -f active,ssid,bssid,security,signal device wifi list --rescan no')
21 | const wifis = rawData
22 | .toString('UTF-8')
23 | .split('\n')
24 | .filter(wifiName => (wifiName.startsWith('yes')))
25 | .map((wifiInfo) => {
26 | const info = new WifiInfo()
27 | let parseState = NMWiFiStringParseState.INITIAL;
28 | let escape = StringParseEscapeState.NORMAL;
29 | let currentSectionStartIndex = 0
30 | for(let i = 0; i < wifiInfo.length; i++) {
31 | if ((wifiInfo.charAt(i) == ':' && escape == StringParseEscapeState.NORMAL)
32 | || i == wifiInfo.length - 1
33 | ) {
34 | const subStr = wifiInfo.substring(currentSectionStartIndex, i)
35 | .replace(/\\/g, '')
36 | currentSectionStartIndex = i + 1
37 | switch (parseState) {
38 | case NMWiFiStringParseState.INITIAL:
39 | break;
40 | case NMWiFiStringParseState.SSID:
41 | info.SSID = subStr
42 | break
43 | case NMWiFiStringParseState.BSSID:
44 | info.BSSID = subStr
45 | break
46 | case NMWiFiStringParseState.SECURITY:
47 | info.secure = subStr.length > 0
48 | break
49 | case NMWiFiStringParseState.STRENGTH:
50 | console.log("strength", subStr)
51 | info.signalStrength = Math.round((parseInt(subStr) / 2) - 100)
52 | break
53 | }
54 | parseState++
55 | } else {
56 | if (escape == StringParseEscapeState.NORMAL && wifiInfo.charAt(i) == '\\') {
57 | escape = StringParseEscapeState.ESCAPE_NEXT
58 | } else {
59 | escape = StringParseEscapeState.NORMAL
60 | }
61 | }
62 | }
63 | if (!info.BSSID || info.BSSID.length == 0) {
64 | info.BSSID = null
65 | info.SSID = null
66 | info.secure = false
67 | info.signalStrength = 0
68 | }
69 | return info;
70 | })
71 | if (wifis.length > 0) {
72 | return wifis[0]
73 | }
74 | } catch (e) {
75 | console.error("Error whild getting wifi info. Do you have nmcli installed?", e)
76 | }
77 | return new WifiInfo();
78 | }
79 |
80 | module.exports = {
81 | getWiFiInfoLinux() {
82 | return getAndParseWifiInfo()
83 | }
84 | }
--------------------------------------------------------------------------------
/src/wifiInfo.js:
--------------------------------------------------------------------------------
1 | var WifiInfo = /** @class */ (function () {
2 | function WifiInfo(SSID, BSSID, secure, signalStrength) {
3 | if (SSID === void 0) { SSID = null; }
4 | if (BSSID === void 0) { BSSID = null; }
5 | if (secure === void 0) { secure = false; }
6 | if (signalStrength === void 0) { signalStrength = 0; }
7 | this.SSID = SSID;
8 | this.BSSID = BSSID;
9 | this.secure = secure;
10 | this.signalStrength = signalStrength;
11 | }
12 | return WifiInfo;
13 | }());
14 |
15 | module.exports = WifiInfo;
--------------------------------------------------------------------------------
/test/index.js:
--------------------------------------------------------------------------------
1 | const nodeWifiInfo = require('../node_wifi_info')
2 |
3 | async function sleep(millis) {
4 | return new Promise(resolve => setTimeout(resolve, millis));
5 | }
6 | async function main() {
7 | var max = 0;
8 | var sum = 0;
9 | var data = []
10 | const limit = 1000;
11 | for (var i = 0; i < limit; i++){
12 | const start = new Date().getTime();
13 | const rtn = nodeWifiInfo.getWifiInfo()
14 | const end = new Date().getTime();
15 | const delta = end-start;
16 | console.log(rtn)
17 | sum += delta;
18 | if (delta > max) {
19 | max = delta
20 | }
21 | console.log("time =", delta);
22 | data.push(delta);
23 | await sleep(Math.random() * 1000);
24 | }
25 | console.log("average", sum / limit);
26 | console.log("max", max);
27 | let obj = {}
28 | for(let i = 0; i < data.length; i++) {
29 | if (obj[data[i]] == undefined) {
30 | obj[data[i]] = 1;
31 | } else {
32 | obj[data[i]] += 1;
33 | }
34 | }
35 | console.log(obj)
36 | }
37 | main();
38 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es5",
4 | "module": "commonjs",
5 | "declaration": true,
6 | "outDir": "./dist",
7 | "strict": true,
8 | "removeComments": true,
9 | },
10 | "exclude": [
11 | "node_modules",
12 | "dist"
13 | ]
14 | }
--------------------------------------------------------------------------------