├── Procfile
├── .env.example
├── .gitignore
├── README.md
├── libs
├── Twitch.js
├── SteamGroup.js
├── Steam.js
├── Mixer.js
├── Minecraft.js
├── Twitter.js
├── Instagram.js
└── Youtube.js
├── package.json
├── index.html
├── services.json
├── app.js
└── LICENSE
/Procfile:
--------------------------------------------------------------------------------
1 | web=npm run start
--------------------------------------------------------------------------------
/.env.example:
--------------------------------------------------------------------------------
1 | # Instagram
2 | IG_CLIENT_ID=
3 | IG_CLIENT_SECRET=
4 | IG_ACCESS_TOKEN=
5 |
6 | # Twitter
7 | TWTR_CONSUMER_KEY=
8 | TWTR_CONSUMER_SECRET=
9 | TWTR_ACCESS_TOKEN_KEY=
10 | TWTR_ACCESS_TOKEN_SECRET=
11 |
12 | # TWitch
13 | TWITCH_CLIENT_ID=
14 | TWITCH_CLIENT_SECRET=
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Node Dependencies
2 | node_modules/
3 |
4 | # OSX Files
5 | .DS_Store
6 |
7 | # Editor Configurations
8 | .idea/
9 | .vscode/
10 | .atom/
11 |
12 | # Private Configuration Variables
13 | configs/*
14 | .env
15 |
16 | # Private API Keys
17 | apikeys.json
18 |
19 | # temp files
20 | tmp/
21 |
22 | # Omit log files
23 |
24 | *.log
25 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Social Media Availability REST API
2 |
3 | > Quick and painless way to check the availability of a username on a variety of services from your app.
4 |
5 | [](https://gitter.im/checker/api?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
6 | 
7 |
--------------------------------------------------------------------------------
/libs/Twitch.js:
--------------------------------------------------------------------------------
1 | const twitch = require('twitch-api-v5');
2 |
3 | const check = (word, callback) => {
4 | twitch.clientID = process.env.TWITCH_CLIENT_ID;
5 |
6 | twitch.users.usersByName({"users": [word]}, function(error, response) {
7 | if(error) {
8 | console.log(error);
9 | } else {
10 | var status = (response['_total'] == 1) ? "taken" : "available";
11 | var milliseconds = new Date().getTime();
12 | callback(status, milliseconds)
13 | }
14 | });
15 | }
16 |
17 | module.exports = check;
--------------------------------------------------------------------------------
/libs/SteamGroup.js:
--------------------------------------------------------------------------------
1 | const axios = require('axios');
2 | const cheerio = require('cheerio');
3 |
4 | const check = (word, callback) => {
5 | var url = `https://steamcommunity.com/groups/${word}`;
6 |
7 | axios.get(url).then(function (response) {
8 | var $ = cheerio.load(response.data);
9 | var elem = $('body').find('h3').length;
10 | var milliseconds = new Date().getTime();
11 | var status = (elem == 1) ? "available" : "taken";
12 | callback(status, milliseconds)
13 | }).catch(console.error);
14 |
15 | }
16 |
17 | module.exports = check;
--------------------------------------------------------------------------------
/libs/Steam.js:
--------------------------------------------------------------------------------
1 | const axios = require('axios');
2 | const cheerio = require('cheerio');
3 |
4 | const check = (word, callback) => {
5 | var url = `https://steamcommunity.com/id/${word}`;
6 |
7 | axios.get(url).then(function (response) {
8 | var $ = cheerio.load(response.data);
9 | var elem = $('body').find('h3').length;
10 | var milliseconds = new Date().getTime();
11 | var status = (elem == 1) ? "available" : "taken";
12 | callback(status, milliseconds)
13 | }).catch(console.error);
14 |
15 | }
16 |
17 | module.exports = check;
--------------------------------------------------------------------------------
/libs/Mixer.js:
--------------------------------------------------------------------------------
1 | const axios = require('axios');
2 |
3 | const check = (word, callback) => {
4 | const url = `https://mixer.com/api/v1/channels/${word}`;
5 |
6 | var status = "";
7 |
8 | axios.get(url).then(function (obj) {
9 | var milliseconds = new Date().getTime();
10 | status = ('statusCode' in obj.data) ? "available" : "taken";
11 | callback(status, milliseconds)
12 | }).catch(function () {
13 | var milliseconds = new Date().getTime();
14 | callback("available", milliseconds)
15 | });
16 | }
17 |
18 | module.exports = check;
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "scripts": {
4 | "start": "node app.js"
5 | },
6 | "dependencies": {
7 | "apicache": "^1.2.1",
8 | "axios": "^0.18.1",
9 | "body-parser": "~1.18.2",
10 | "cheerio": "^1.0.0-rc.2",
11 | "connect-timeout": "^1.9.0",
12 | "cookie-parser": "~1.4.3",
13 | "cors": "^2.8.4",
14 | "debug": "~2.6.9",
15 | "dotenv": "^6.2.0",
16 | "express": "~4.15.5",
17 | "faker": "^4.1.0",
18 | "morgan": "~1.9.1",
19 | "node-instagram": "^4.1.0",
20 | "pug": "2.0.0-beta11",
21 | "redis": "^2.8.0",
22 | "serve-favicon": "~2.4.5",
23 | "twitch-api-v5": "^2.0.2",
24 | "twitter-lite": "^0.4.0"
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/libs/Minecraft.js:
--------------------------------------------------------------------------------
1 | const axios = require('axios');
2 | const faker = require('faker');
3 |
4 | const check = (word, callback) => {
5 | var url = `https://api.mojang.com/users/profiles/minecraft/${word}`;
6 | var status = "";
7 |
8 | axios.get(url, null, { "headers": { "User-Agent": faker.internet.userAgent }})
9 | .then(results = (r) => {
10 | var milliseconds = new Date().getTime();
11 | try {
12 | var data = JSON.parse(r.data);
13 | status = "taken";
14 | } catch(err) {
15 | status = "available";
16 | }
17 | callback(status, milliseconds)
18 | })
19 | .catch(console.error)
20 |
21 | }
22 |
23 | module.exports = check;
--------------------------------------------------------------------------------
/libs/Twitter.js:
--------------------------------------------------------------------------------
1 | const Twitter = require('twitter-lite');
2 |
3 | const check = (word, callback) => {
4 | var config = {
5 | "consumer_key": process.env.TWTR_CONSUMER_KEY,
6 | "consumer_secret": process.env.TWTR_CONSUMER_SECRET,
7 | "access_token_key": process.env.TWTR_ACCESS_TOKEN_KEY,
8 | "access_token_secret": process.env.TWTR_ACCESS_TOKEN_SECRET
9 | };
10 | var client = new Twitter(config);
11 |
12 | client.get('users/show', {screen_name: word, include_entities: false})
13 | .then((r) => {
14 | var milliseconds = new Date().getTime();
15 | var status = ('screen_name' in r) ? "taken" : "available";
16 | callback(status, milliseconds)
17 | })
18 | .catch(console.error)
19 |
20 | }
21 |
22 | module.exports = check;
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | gh: checker/api
4 |
5 |
21 |
22 |
23 |
Username Checker API
24 |
(Base Route)
25 |
26 | This is the base route for the checker api, aka the Penguin API.
27 | I don't intend on making this page pretty as I don't have a lot of time anymore.
28 | However, if you want to contribute, the project is open-source on GitHub. Just fork it and submit a pull request.
29 |
30 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/libs/Instagram.js:
--------------------------------------------------------------------------------
1 | const axios = require('axios');
2 | const faker = require('faker');
3 |
4 | const check = (word, callback) => {
5 |
6 | var token = "";
7 | var mid = "";
8 | var cookie = "";
9 |
10 | axios.get('https://www.instagram.com/')
11 | .then(function(response) {
12 | token = response.headers['set-cookie'][5].split(';')[0].split('=')[1];
13 | mid = response.headers['set-cookie'][6].split(';')[0].split('=')[1];
14 | cookie = `mid=${mid}; csrftoken=${token}; rur=ASH`;
15 |
16 | var config = {
17 | "headers": {
18 | "Host": "www.instagram.com",
19 | "Referer": "https://www.instagram.com",
20 | "x-csrftoken": token,
21 | "Cookie": cookie,
22 | "User-Agent": faker.internet.userAgent,
23 | "Content-Type": "application/x-www-form-urlencoded; charset=utf-8"
24 | }
25 | }
26 |
27 | var payload = {
28 | "first_name": faker.name.firstName(),
29 | "username": word,
30 | "email": faker.internet.email(),
31 | "password": faker.internet.password(16)
32 | }
33 |
34 | axios.post('https://www.instagram.com/accounts/web_create_ajax/attempt/', payload, config)
35 | .then(function (response) {
36 | var milliseconds = new Date().getTime();
37 | var status = (response.data.dryrun_passed) ? "available" : "taken";
38 | callback(status, milliseconds)
39 | }).catch(console.error);
40 |
41 | }).catch(console.error);
42 |
43 |
44 |
45 | }
46 |
47 | module.exports = check;
--------------------------------------------------------------------------------
/libs/Youtube.js:
--------------------------------------------------------------------------------
1 | const axios = require('axios');
2 |
3 | const check = (word, callback) => {
4 | const baseUrl = `https://www.youtube.com/${word}`;
5 | const userUrl = `https://www.youtube.com/user/${word}`;
6 | const chanUrl = `https://www.youtube.com/c/${word}`;
7 |
8 | const urls = [baseUrl, userUrl, chanUrl];
9 | const types = ["base", "user", "channel"];
10 |
11 | var promises = new Array();
12 | var codeObj = new Object();
13 | var status = "";
14 |
15 | function axiosCall(url, type) {
16 | return new Promise((resolve, reject) => {
17 | axios.get(url, null, {"timeout": 2500}).then((response, error) => {
18 | codeObj[type] = response.status;
19 | resolve(response.status);
20 | }).catch((error) => {
21 | if (error.response) {
22 | codeObj[type] = error.response.status;
23 | resolve(error.response.status);
24 | } else {
25 | reject(error);
26 | }
27 | });
28 | });
29 | }
30 |
31 | for ( var i = 0 ; i < 3 ; i++ ) {
32 | var promise = axiosCall(urls[i], types[i]);
33 | promises.push(promise);
34 | }
35 |
36 | Promise.all(promises).then((codes) => {
37 |
38 | var milliseconds = new Date().getTime();
39 |
40 | if (codes === undefined || codes.length == 0) {
41 | status = "available";
42 | } else {
43 | var code = codes.reduce(function(a, b, c){ return (a === b) ? a : c });
44 |
45 | switch (code) {
46 | case 200:
47 | status = "taken";
48 | break;
49 | case 404:
50 | status = "available";
51 | break;
52 | case 2:
53 | status = "taken";
54 | break;
55 | default:
56 | status = "unknown";
57 | break;
58 | }
59 | }
60 |
61 | callback(status, milliseconds, codeObj)
62 |
63 | }).catch(console.error);
64 |
65 | }
66 |
67 | module.exports = check;
--------------------------------------------------------------------------------
/services.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": 1,
4 | "name": "Twitter",
5 | "slug": "twitter",
6 | "libPath": "libs/Twitter.js",
7 | "endpoints": {
8 | "baseUrl": "https://www.twitter.com",
9 | "profileUrl": "https://twitter.com/%name%",
10 | "requestUrl": "https://api.twitter.com/i/users/username_available.json?username=%name%"
11 | },
12 | "httpMethod": "GET",
13 | "usernameCriteria": {
14 | "minLength": 5,
15 | "maxLength": 15,
16 | "allowedUsernamePattern": "([a-zA-Z0-9_]+)",
17 | "prohibitedWords": [
18 | "twitter",
19 | "admin"
20 | ]
21 | }
22 | },
23 | {
24 | "id": 2,
25 | "name": "Instagram",
26 | "slug": "instagram",
27 | "libPath": "libs/Instagram.js",
28 | "endpoints": {
29 | "baseUrl": "https://www.instagram.com",
30 | "profileUrl": "https://instagram.com/%name%",
31 | "requestUrl": "https://instagram.com/accounts/web_create_ajax/attempt/"
32 | },
33 | "httpMethod": "POST",
34 | "usernameCriteria": {
35 | "minLength": 1,
36 | "maxLength": 30,
37 | "allowedUsernamePattern": "([a-zA-Z0-9_\\.]+)",
38 | "prohibitedWords": []
39 | }
40 | },
41 | {
42 | "id": 3,
43 | "name": "Steam ID",
44 | "slug": "steamid",
45 | "libPath": "libs/Steam.js",
46 | "endpoints": {
47 | "baseUrl": "https://www.steamcommunity.com",
48 | "profileUrl": "https://steamcommunity.com/id/%name%",
49 | "requestUrl": "https://steamcommunity.com/id/%name%"
50 | },
51 | "httpMethod": "GET",
52 | "usernameCriteria": {
53 | "minLength": 1,
54 | "maxLength": 31,
55 | "allowedUsernamePattern": "([a-zA-Z0-9_]+)",
56 | "prohibitedWords": [
57 | "valve",
58 | "support"
59 | ]
60 | }
61 | },
62 | {
63 | "id": 4,
64 | "name": "Steam Group",
65 | "slug": "steamgroup",
66 | "libPath": "libs/SteamGroup.js",
67 | "endpoints": {
68 | "baseUrl": "https://www.steamcommunity.com",
69 | "profileUrl": "https://steamcommunity.com/groups/%name%",
70 | "requestUrl": "https://steamcommunity.com/groups/%name%"
71 | },
72 | "httpMethod": "GET",
73 | "usernameCriteria": {
74 | "minLength": 1,
75 | "maxLength": 31,
76 | "allowedUsernamePattern": "([a-zA-Z0-9_]+)",
77 | "prohibitedWords": [
78 | "valve",
79 | "support"
80 | ]
81 | }
82 | },
83 | {
84 | "id": 5,
85 | "name": "Mixer",
86 | "slug": "mixer",
87 | "libPath": "libs/Mixer.js",
88 | "endpoints": {
89 | "baseUrl": "https://www.mixer.com",
90 | "profileUrl": "https://mixer.com/api/v1/channels/%name%",
91 | "requestUrl": "https://mixer.com/api/v1/channels/%name%"
92 | },
93 | "httpMethod": "GET",
94 | "usernameCriteria": {
95 | "minLength": 1,
96 | "maxLength": 31,
97 | "allowedUsernamePattern": "([a-zA-Z0-9]+)",
98 | "prohibitedWords": []
99 | }
100 | },
101 | {
102 | "id": 6,
103 | "name": "YouTube",
104 | "slug": "youtube",
105 | "libPath": "libs/Youtube.js",
106 | "endpoints": {
107 | "baseUrl": "https://www.youtube.com/",
108 | "profileUrl": "https://www.youtube.com/user/%name%",
109 | "requestUrl": "https://www.youtube.com/c/%name%"
110 | },
111 | "httpMethod": "GET",
112 | "usernameCriteria": {
113 | "minLength": 4,
114 | "maxLength": 20,
115 | "allowedUsernamePattern": "([a-zA-Z0-9]+)",
116 | "prohibitedWords": [
117 | "youtube",
118 | "google",
119 | "admin"
120 | ]
121 | }
122 | }
123 | ]
--------------------------------------------------------------------------------
/app.js:
--------------------------------------------------------------------------------
1 | require('dotenv').config();
2 |
3 | const express = require('express');
4 | const cors = require('cors');
5 | const app = express();
6 | const router = express.Router();
7 |
8 | const bodyParser = require('body-parser');
9 | const timeout = require('connect-timeout');
10 | const apicache = require('apicache');
11 | const redis = require('redis');
12 |
13 | // Load services.json
14 | const advanced = require('./services.json');
15 |
16 | // Used for storing active modules
17 | let modules = []
18 |
19 | app.use(cors())
20 | app.use(router);
21 | app.use(timeout('5s'));
22 | app.use(bodyParser.json());
23 | app.use(bodyParser.urlencoded({ extended: false }));
24 | app.use(haltOnTimedout);
25 | app.use(function (req, res, next) {
26 | res.header('Content-Type', 'application/json');
27 | res.header('x-powered-by', 'checkerapi.com')
28 | next();
29 | });
30 |
31 | const loadLibs = (callback) => {
32 | // This isn't great, but it works.
33 | advanced.forEach(service => {
34 | console.log(`[BOOTSTRAP] Bootstrapping ${service.name} (${service.slug})`)
35 | modules[service.slug] = {"manifest": service, "instance": require(`./${service.libPath}`)}
36 | })
37 | console.log(`[BOOTSTRAP] Module start finished, loaded ${modules.length} modules.`)
38 | callback()
39 | }
40 |
41 | function checkAuthKey(req, res, next) {
42 | var keys = require('./apikeys.json');
43 | var appkey = req.get('og-apikey');
44 |
45 | if (keys.authorized.includes(appkey)) {
46 | next()
47 | } else {
48 | res.status(401) // http: UNAUTHORIZED
49 | res.json({"status": "unauthorized"});
50 | }
51 | }
52 |
53 | let cacheWithRedis = apicache.options({ redisClient: redis.createClient(process.env.REDIS_URL) }).middleware;
54 |
55 | router.get('/', function(req, res) {
56 | return res.sendFile(__dirname + '/index.html');
57 | });
58 |
59 | router.get('/gh', function(req, res) {
60 | return res.redirect("https://github.com/checker/api/");
61 | });
62 |
63 | router.get('/docs', function(req, res) {
64 | return res.redirect("https://app.swaggerhub.com/apis/checker/api/");
65 | });
66 |
67 | router.get('/check/services', function(req, res) {
68 | // Note: see APICHANGES.md for possible changes
69 | var simple = [];
70 | for (var key in advanced) {
71 | simple.push(advanced[key].slug)
72 | }
73 | res.json(simple);
74 | });
75 |
76 | router.get('/check/services/details', function(req, res) {
77 | return res.json(advanced)
78 | });
79 |
80 | router.get('/check/:service', function(req, res) {
81 | var service = req.params.service;
82 | var json = {};
83 | for (var key in advanced) {
84 | if (service === advanced[key].slug) {
85 | json = advanced[key];
86 | break;
87 | }
88 | }
89 | return res.json(json)
90 | });
91 |
92 | router.get('/check/:service/:word', [cacheWithRedis('6 hours')], function(req, res) {
93 | var service = req.params.service;
94 | var word = req.params.word;
95 | if (modules[service] == undefined) {
96 | res.status(400)
97 | return res.json({"error": "INVALID_SERVICE", "message": "Invalid service selected, please see /check/services for a list."})
98 | }else {
99 | // Seemingly valid service, request data on 'word':
100 | modules[service].instance(word, (status, timestamp, statusBreakdown) => {
101 | // Result will be an array containing [status, epoch, extra information]
102 | const json = {
103 | "service": modules[service]["manifest"]["slug"], // Use the slug, not what the user sent
104 | "username": word, // Return what the user sent, I'm lazy.
105 | "status": status, // Return the status "available"/"taken"/"unknown"
106 | "timestamp": timestamp, // Return an MS epoch time
107 | "statusBreakdown": statusBreakdown || undefined // Return the breakdown (or undefined)
108 | }
109 | return res.json(json)
110 | })
111 | }
112 | });
113 |
114 | function haltOnTimedout (req, res, next) {
115 | if (!req.timedout) next()
116 | }
117 |
118 | loadLibs(() => {
119 | // Start server when modules have loaded
120 | app.listen(process.env.PORT || 5000, () => {
121 | console.log(`[SERVER] Started listening on ${process.env.PORT || 5000}`)
122 | });
123 | })
124 |
125 | module.exports = app;
126 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU LESSER GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 |
9 | This version of the GNU Lesser General Public License incorporates
10 | the terms and conditions of version 3 of the GNU General Public
11 | License, supplemented by the additional permissions listed below.
12 |
13 | 0. Additional Definitions.
14 |
15 | As used herein, "this License" refers to version 3 of the GNU Lesser
16 | General Public License, and the "GNU GPL" refers to version 3 of the GNU
17 | General Public License.
18 |
19 | "The Library" refers to a covered work governed by this License,
20 | other than an Application or a Combined Work as defined below.
21 |
22 | An "Application" is any work that makes use of an interface provided
23 | by the Library, but which is not otherwise based on the Library.
24 | Defining a subclass of a class defined by the Library is deemed a mode
25 | of using an interface provided by the Library.
26 |
27 | A "Combined Work" is a work produced by combining or linking an
28 | Application with the Library. The particular version of the Library
29 | with which the Combined Work was made is also called the "Linked
30 | Version".
31 |
32 | The "Minimal Corresponding Source" for a Combined Work means the
33 | Corresponding Source for the Combined Work, excluding any source code
34 | for portions of the Combined Work that, considered in isolation, are
35 | based on the Application, and not on the Linked Version.
36 |
37 | The "Corresponding Application Code" for a Combined Work means the
38 | object code and/or source code for the Application, including any data
39 | and utility programs needed for reproducing the Combined Work from the
40 | Application, but excluding the System Libraries of the Combined Work.
41 |
42 | 1. Exception to Section 3 of the GNU GPL.
43 |
44 | You may convey a covered work under sections 3 and 4 of this License
45 | without being bound by section 3 of the GNU GPL.
46 |
47 | 2. Conveying Modified Versions.
48 |
49 | If you modify a copy of the Library, and, in your modifications, a
50 | facility refers to a function or data to be supplied by an Application
51 | that uses the facility (other than as an argument passed when the
52 | facility is invoked), then you may convey a copy of the modified
53 | version:
54 |
55 | a) under this License, provided that you make a good faith effort to
56 | ensure that, in the event an Application does not supply the
57 | function or data, the facility still operates, and performs
58 | whatever part of its purpose remains meaningful, or
59 |
60 | b) under the GNU GPL, with none of the additional permissions of
61 | this License applicable to that copy.
62 |
63 | 3. Object Code Incorporating Material from Library Header Files.
64 |
65 | The object code form of an Application may incorporate material from
66 | a header file that is part of the Library. You may convey such object
67 | code under terms of your choice, provided that, if the incorporated
68 | material is not limited to numerical parameters, data structure
69 | layouts and accessors, or small macros, inline functions and templates
70 | (ten or fewer lines in length), you do both of the following:
71 |
72 | a) Give prominent notice with each copy of the object code that the
73 | Library is used in it and that the Library and its use are
74 | covered by this License.
75 |
76 | b) Accompany the object code with a copy of the GNU GPL and this license
77 | document.
78 |
79 | 4. Combined Works.
80 |
81 | You may convey a Combined Work under terms of your choice that,
82 | taken together, effectively do not restrict modification of the
83 | portions of the Library contained in the Combined Work and reverse
84 | engineering for debugging such modifications, if you also do each of
85 | the following:
86 |
87 | a) Give prominent notice with each copy of the Combined Work that
88 | the Library is used in it and that the Library and its use are
89 | covered by this License.
90 |
91 | b) Accompany the Combined Work with a copy of the GNU GPL and this license
92 | document.
93 |
94 | c) For a Combined Work that displays copyright notices during
95 | execution, include the copyright notice for the Library among
96 | these notices, as well as a reference directing the user to the
97 | copies of the GNU GPL and this license document.
98 |
99 | d) Do one of the following:
100 |
101 | 0) Convey the Minimal Corresponding Source under the terms of this
102 | License, and the Corresponding Application Code in a form
103 | suitable for, and under terms that permit, the user to
104 | recombine or relink the Application with a modified version of
105 | the Linked Version to produce a modified Combined Work, in the
106 | manner specified by section 6 of the GNU GPL for conveying
107 | Corresponding Source.
108 |
109 | 1) Use a suitable shared library mechanism for linking with the
110 | Library. A suitable mechanism is one that (a) uses at run time
111 | a copy of the Library already present on the user's computer
112 | system, and (b) will operate properly with a modified version
113 | of the Library that is interface-compatible with the Linked
114 | Version.
115 |
116 | e) Provide Installation Information, but only if you would otherwise
117 | be required to provide such information under section 6 of the
118 | GNU GPL, and only to the extent that such information is
119 | necessary to install and execute a modified version of the
120 | Combined Work produced by recombining or relinking the
121 | Application with a modified version of the Linked Version. (If
122 | you use option 4d0, the Installation Information must accompany
123 | the Minimal Corresponding Source and Corresponding Application
124 | Code. If you use option 4d1, you must provide the Installation
125 | Information in the manner specified by section 6 of the GNU GPL
126 | for conveying Corresponding Source.)
127 |
128 | 5. Combined Libraries.
129 |
130 | You may place library facilities that are a work based on the
131 | Library side by side in a single library together with other library
132 | facilities that are not Applications and are not covered by this
133 | License, and convey such a combined library under terms of your
134 | choice, if you do both of the following:
135 |
136 | a) Accompany the combined library with a copy of the same work based
137 | on the Library, uncombined with any other library facilities,
138 | conveyed under the terms of this License.
139 |
140 | b) Give prominent notice with the combined library that part of it
141 | is a work based on the Library, and explaining where to find the
142 | accompanying uncombined form of the same work.
143 |
144 | 6. Revised Versions of the GNU Lesser General Public License.
145 |
146 | The Free Software Foundation may publish revised and/or new versions
147 | of the GNU Lesser General Public License from time to time. Such new
148 | versions will be similar in spirit to the present version, but may
149 | differ in detail to address new problems or concerns.
150 |
151 | Each version is given a distinguishing version number. If the
152 | Library as you received it specifies that a certain numbered version
153 | of the GNU Lesser General Public License "or any later version"
154 | applies to it, you have the option of following the terms and
155 | conditions either of that published version or of any later version
156 | published by the Free Software Foundation. If the Library as you
157 | received it does not specify a version number of the GNU Lesser
158 | General Public License, you may choose any version of the GNU Lesser
159 | General Public License ever published by the Free Software Foundation.
160 |
161 | If the Library as you received it specifies that a proxy can decide
162 | whether future versions of the GNU Lesser General Public License shall
163 | apply, that proxy's public statement of acceptance of any version is
164 | permanent authorization for you to choose that version for the
165 | Library.
166 |
--------------------------------------------------------------------------------