Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
code-conduct
Advanced tools
Exports Code-Of-conduct In 28 Different Languages :)
Run npm install code-conduct
Or yarn add code-conduct
:zap:
For complete Documentation see : code-conduct
const coc = require('code-conduct');
lang_id
()console.log(coc.en());
/* =>
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of experience,
nationality, personal appearance, race, religion, or sexual identity and
orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment
include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members .........
*/
console.log(coc.get_coc("bn"));
/* =># কনট্রিবিউটরদের আচরনবিধি
## আমাদের অঙ্গীকার
গোষ্ঠীর অবাধ এবং স্বাগতপূর্ণ ভাবমূর্তি বজায় রাখার আগ্রহে,
আমরা কনট্রিবিউটর এবং মেনটেইনার হিসেবে অঙ্গীকার করছি যে,
এই প্রজেক্ট ও গোষ্ঠীতে যোগদান বয়স, শরীর, অক্ষমতা, জাতি,
লিঙ্গ পরিচয় ও অভিব্যক্তি, অভিজ্ঞতা, জাতীয়তা, চেহারা,
বর্ণ, ধর্ম, যৌন পরিচয় ও অভিব্যক্তি নির্বিশেষে সবার জন্য
একটি হয়রানি-মুক্ত অভিজ্ঞতা করব।
## আমাদের মানদন্ড
ইতিবাচক পরিবেশ তৈরী করতে ব্যবহারের কিছু উদাহরন:
* স্বাগতপূর্ণ ভাষা ব্যবহার
* বিভিন্ন দৃষ্টিভঙ্গি এবং অভিজ্ঞতার প্রতি সম্মান
* মার্জিত ভাবে গঠনমূলক সমালোচনা গ্রহণ
* গোষ্ঠীর উন্নতিকে প্রাধান্য দেওয়া
* গোষ্ঠীর বাকি সদস্যদের প্রতি সহমর্মিতা দেখানো
গ্রহণযোগ্য নয়, অংশগ্রহণকারীদের এমন আচরণের উদাহরণ:......
*/
console.log(coc.get_code("English"));
// => en
console.log(coc.supported_langs());
/* =>
[
'bn', 'bs', 'de', 'el',
'en', 'es', 'fa_ir', 'fr',
'hi', 'id', 'is', 'iw',
'ja', 'kn', 'ko', 'mk',
'nl', 'pl', 'pt_br', 'pt',
'ro', 'ru', 'sl', 'sv',
'tr', 'uk', 'zh_cn', 'zh_tw'
]
*/
console.log(coc.get_lang("ko"));
//=> Korean
console.log(coc.all_langs());
/*=>
{
aa: 'Afar',
ab: 'Abkhazian',
af: 'Afrikaans',
am: 'Amharic',
ar: 'Arabic',
ar_ae: 'Arabic (U.A.E.)',
ar_bh: 'Arabic (Bahrain)',
ar_dz: 'Arabic (Algeria)',
ar_eg: 'Arabic (Egypt)',
ar_iq: 'Arabic (Iraq)',
ar_jo: 'Arabic (Jordan)',
ar_kw: 'Arabic (Kuwait)',
ar_lb: 'Arabic (Lebanon)',
ar_ly: 'Arabic (libya)',
ar_ma: 'Arabic (Morocco)',
ar_om: 'Arabic (Oman)',
ar_qa: 'Arabic (Qatar)',
ar_sa: 'Arabic (Saudi Arabia)',
ar_sy: 'Arabic (Syria)',
ar_tn: 'Arabic (Tunisia)',
ar_ye: 'Arabic (Yemen)',
as: 'Assamese',
ay: 'Aymara', ................
}
*/
Object
A module that returns a list of all languages
Array.<string>
A module that exports an array of all languages id supported by code-conduct till now
string
A module to get language Id of a language
string
A module to get language name from a language ID
string
A module to export code-of-conduct text for a language ID
Object
A module that returns a list of all languages
Returns: Object
- - Object of all language in { id : name } format
Array.<string>
A module that exports an array of all languages id supported by code-conduct till now
Returns: Array.<string>
- - Array of supported language IDs
Author: Dipankar Pal dipankarpal5050@gmail.com
string
A module to get language Id of a language
Returns: string
- - Language ID for the given language name
Author: Dipankar Pal dipankarpal5050@gmail.com
Param | Type | Description |
---|---|---|
lang_name | string | An exact language name |
string
A module to get language name from a language ID
Returns: string
- - Language name for the language_id
Author: Dipankar Pal dipankarpal5050@gmail.com
Param | Type | Description |
---|---|---|
lang_id | string | Language ID of a language |
string
A module to export code-of-conduct text for a language ID
Returns: string
- - Code-of-conduct for the language
Author: Dipankar Pal dipankarpal5050@gmail.com
Param | Type | Description |
---|---|---|
lang_id | string | Language ID of the intended Language |
MIT (C) 2020 Dipankar Pal
FAQs
Exports Code-Of-Conduct In 28 Different Languages :)
The npm package code-conduct receives a total of 6 weekly downloads. As such, code-conduct popularity was classified as not popular.
We found that code-conduct demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.