Skip to content

Commit ad2e116

Browse files
committed
1.1.0
1 parent 200d434 commit ad2e116

22 files changed

Lines changed: 4946 additions & 1363 deletions

.eslintrc.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"env": {
3+
"commonjs": true,
4+
"node": true,
5+
"es6": true
6+
},
7+
"extends": "eslint:recommended",
8+
"parserOptions": {
9+
"ecmaVersion": 2018,
10+
"sourceType": "module"
11+
},
12+
"plugins": [
13+
"unicorn"
14+
],
15+
"rules": {
16+
"unicorn/filename-case": ["error", {"case": "pascalCase"}],
17+
"object-curly-spacing": ["error", "always"],
18+
"no-array-constructor": "off",
19+
"no-new-object": "off",
20+
"no-console": "off",
21+
"complexity": "off",
22+
"camelcase": ["error", {"properties": "never"}],
23+
"indent": ["error", 2],
24+
"quotes": ["error", "single"],
25+
"curly": "off",
26+
"semi": ["error", "always"]
27+
}
28+
}

.gitignore

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,76 @@
1-
node_modules
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
14+
# Directory for instrumented libs generated by jscoverage/JSCover
15+
lib-cov
16+
17+
# Coverage directory used by tools like istanbul
18+
coverage
19+
20+
# nyc test coverage
21+
.nyc_output
22+
23+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
24+
.grunt
25+
26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
29+
# node-waf configuration
30+
.lock-wscript
31+
32+
# Compiled binary addons (https://nodejs.org/api/addons.html)
33+
build/Release
34+
35+
# Dependency directories
36+
node_modules/
37+
jspm_packages/
38+
39+
# TypeScript v1 declaration files
40+
typings/
41+
42+
# Optional npm cache directory
43+
.npm
44+
45+
# Optional eslint cache
46+
.eslintcache
47+
48+
# Optional REPL history
49+
.node_repl_history
50+
51+
# Output of 'npm pack'
52+
*.tgz
53+
54+
# Yarn Integrity file
55+
.yarn-integrity
56+
57+
# dotenv environment variables file
58+
.env
59+
60+
# parcel-bundler cache (https://parceljs.org/)
61+
.cache
62+
63+
# next.js build output
64+
.next
65+
66+
# nuxt.js build output
67+
.nuxt
68+
69+
# vuepress build output
70+
.vuepress/dist
71+
72+
# Serverless directories
73+
.serverless
74+
75+
# FuseBox cache
76+
.fusebox/

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language: node_js
2+
node_js:
3+
- 7.6
4+
- 8
5+
- 10
6+
after_success:
7+
- './node_modules/coveralls/bin/coveralls.js'

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
This is currently empty
1+
# Tools-Kit Change log
2+
* [[`v1.0`](https://github.com/BlackB1RD-Development/tools-kit/tree/v1.0)] - [version] 1.0
3+
* [[`v1.0`](https://github.com/BlackB1RD-Development/tools-kit/tree/v1.1)] - [version] 1.1

CODE_OF_CONDUCT.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at blackbird.d3v@gmail.com. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 BlackB1RD-Development
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

LICENSE.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<img src="https://img.shields.io/badge/code_style-XO-5ed9c7.svg" alt="Code Style" />
3030
</a>
3131
<br />
32-
<sub>© <a href="https://www.npmjs.com/package/tools-kit">Tools-Kit</a> By <a href="https://github.com/BlackB1RD-Development">BlackB1RD-Development</a> (<b><a href="https://github.com/RealBlackB1RD">@RealBlackB1RD</a></b>). All rights reserved ©</sub>
32+
<sub>© <a href="https://www.npmjs.com/package/tools-kit">Tools-Kit</a> By <a href="https://github.com/BlackB1RD-Development">BlackB1RD-Development</a> (<b><a href="https://github.com/RealBlackB1RD">@RealBlackB1RD</a></b>). All rights reserved.</sub>
3333
</p>
3434

3535
## Features
@@ -152,9 +152,9 @@ Read the [**Documentations**][documentations] for more information about each me
152152
- [figlet][figlet] — Creates ASCII Art from text. A full implementation of the FIGfont spec.
153153

154154
[hastebin]:https://hastebin.com/about.md
155-
[documentations]:https://tools-kit.js.org/docs
155+
[documentations]:https://tools-kit.js.org/api
156156
[changelog]:https://github.com/BlackB1RD-Development/tools-kit/blob/master/CHANGELOG.md
157157
[license]:https://github.com/BlackB1RD-Development/tools-kit/blob/master/LICENSE.md
158158
[node-fetch]: https://www.npmjs.com/package/node-fetch
159159
[moment]: https://www.npmjs.com/package/moment
160-
[figlet]: https://www.npmjs.com/package/figlet
160+
[figlet]: https://www.npmjs.com/package/figlet

examples/ColorManager.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
const tools = require('../index.js');
1+
// Tools-Kit By BlackB1RD-Development. All rights reserved ©
2+
// Website: https://tools-kit.js.org/
3+
// Project: https://github.com/BlackB1RD-Development/tools-kit
4+
// License: MIT
25

3-
const color = tools.color;
4-
const logger = tools.logger;
6+
// Requires - Files
7+
const { logger, color } = require('..');
58

69
logger.log({ tag: 'STYLE' }, color.style({ background: 'gray' }, 'styled-background'), 'normal background');
710
logger.log({ tag: 'STYLE' }, color.style({ color: 'red' }, 'styled-color'), 'normal color');
811
logger.log({ tag: 'STYLE' }, color.style({ style: 'bold' }, 'styled-style'), 'normal style');
912
logger.log({ tag: 'RAINBOW' }, color.rainbow('rainbow colored-text'), 'normal text');
1013
logger.log({ tag: 'RANDOM' }, color.random('random colored-text'), 'normal text');
11-
logger.log({ tag: 'ZABRA' }, color.zabra('zabra colored-text'), 'normal text');
14+
logger.log({ tag: 'ZABRA' }, color.zabra('zabra colored-text'), 'normal text');

examples/HastebinClient.js

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
const tools = require('../index.js');
1+
// Tools-Kit By BlackB1RD-Development. All rights reserved ©
2+
// Website: https://tools-kit.js.org/
3+
// Project: https://github.com/BlackB1RD-Development/tools-kit
4+
// License: MIT
25

3-
const hastebin = tools.hastebin;
4-
const logger = tools.logger;
6+
// Requires - Files
7+
const { logger, hastebin } = require('..');
58

6-
hastebin.post('var test = "test";\n\nconsole.log(test);', '.js')
7-
.then(postRes => {
8-
logger.log({ tag: 'POST RES' }, postRes);
9+
hastebin.post('var test = \'test\';\n\nconsole.log(test);', '.js')
10+
.then(async postRes => {
11+
logger.log({ background: 'black', color: 'green', type: 'info', tag: 'POST RES' }, postRes);
912

10-
hastebin.get(postRes.link)
11-
.then(getRes => logger.log({ tag: 'GET RES' }, getRes))
12-
.catch(getErr => logger.error({ tag: 'GET ERROR' }, getErr));
13+
await hastebin.get(postRes.link)
14+
.then(getRes => logger.log({ background: 'black', color: 'green', type: 'info', tag: 'GET RES' }, getRes))
15+
.catch(getErr => logger.log({ background: 'black', color: 'red', type: 'error', tag: 'GET ERROR' }, getErr));
1316
})
14-
.catch(postErr => logger.error({ tag: 'POST ERROR' }, postErr));
17+
.catch(postErr => logger.log({ background: 'black', color: 'red', type: 'error', tag: 'POST ERROR' }, postErr));

0 commit comments

Comments
 (0)