-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.js
43 lines (34 loc) · 1.48 KB
/
init.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*!
* findpattern <https://github.com/passariello/findpattern>
*
* Copyright (c) 2021, Dario Passariello.
* Licensed under the Apache-2.0 License.
*/
/***********************************************************************/
(function () {
if (typeof window === 'undefined') {
global.window = {};
}
const pjson = require('./package.json');
// CREATE ROOT STORE
window.findpattern = {};
// FIRST MESSAGE
console.groupCollapsed( `%c${pjson.name} v${pjson.version}%c`,"color:orange","" );
console.debug( `%c${pjson.name} v${pjson.version}%c by Dario Passariello started`,"color:orange","" );
console.debug( `%cType ${pjson.name} in this console to see it`, "color:gray","" );
console.debug( "%cFor help visit: " + pjson.repository.help, "color:gray","" );
console.debug( 'name: %c' + pjson.name,"color:orange","" );
console.debug( 'version: %c' + pjson.version,"color:orange","" );
console.debug( 'description: %c' + pjson.description,"color:orange","" );
console.debug( 'license: %c' + pjson.license,"color:orange","" );
console.debug( 'repository: %c' + pjson.repository.url,"color:orange","" );
console.debug( 'author: %c' + pjson.author.name,"color:orange","" );
console.debug( 'email: %c' + pjson.author.email,"color:orange","" );
console.groupEnd();
// SCRIPT
require('./scripts/findpattern.js');
require('./scripts/palindrome.js');
// test:
// console.log( findPattern('abcabc') );
// console.log( findPattern('cccc') );
})();