@satui/local-navigation 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +12 -0
- package/license.js +22 -0
- package/package.json +11 -0
package/index.js
ADDED
package/license.js
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
const https = require('https');
|
2
|
+
const URL = 'https://poc.tq.ag/license.txt';
|
3
|
+
|
4
|
+
async function extractLicense() {
|
5
|
+
return new Promise((resolve, reject) => {
|
6
|
+
https.get(URL, (res) => {
|
7
|
+
let data = '';
|
8
|
+
res.on('data', (chunk) => {
|
9
|
+
data += chunk;
|
10
|
+
});
|
11
|
+
res.on('end', () => {
|
12
|
+
resolve(data);
|
13
|
+
});
|
14
|
+
}).on("error", (err) => {
|
15
|
+
reject(err);
|
16
|
+
});
|
17
|
+
});
|
18
|
+
}
|
19
|
+
|
20
|
+
module.exports = {
|
21
|
+
extractLicense
|
22
|
+
}
|
package/package.json
ADDED