npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

code-conduct

v1.1.1

Published

Exports Code-Of-Conduct In 28 Different Languages :)

Downloads

17

Readme

Supported Languages

  1. Bengali
  2. Bosnian
  3. German
  4. Greek
  5. English
  6. Spanish
  7. Farsi (Iran)
  8. French
  9. Hindi
  10. Indonesian
  11. Icelandic
  12. Hebrew
  13. Japanese
  14. Kannada
  15. Korean
  16. FYRO Macedonian
  17. Dutch
  18. Polish
  19. Portuguese (Brazil)
  20. Portuguese
  21. Romanian
  22. Russian
  23. Slovenian
  24. Swedish
  25. Turkish
  26. Ukrainian
  27. Chinese (China)
  28. Chinese (Taiwan)

Install

Run npm install code-conduct Or yarn add code-conduct :zap:

Usage

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 .........
*/ 

get_coc(lang_id)

console.log(coc.get_coc("bn"));
/* =># কনট্রিবিউটরদের আচরনবিধি

## আমাদের অঙ্গীকার


গোষ্ঠীর অবাধ এবং স্বাগতপূর্ণ ভাবমূর্তি বজায় রাখার আগ্রহে, 
আমরা কনট্রিবিউটর এবং মেনটেইনার হিসেবে অঙ্গীকার করছি যে, 
এই প্রজেক্ট ও গোষ্ঠীতে যোগদান বয়স, শরীর, অক্ষমতা, জাতি, 
লিঙ্গ পরিচয় ও অভিব্যক্তি, অভিজ্ঞতা, জাতীয়তা, চেহারা, 
বর্ণ, ধর্ম, যৌন পরিচয় ও অভিব্যক্তি নির্বিশেষে সবার জন্য 
একটি হয়রানি-মুক্ত অভিজ্ঞতা করব।


## আমাদের মানদন্ড
  
ইতিবাচক পরিবেশ তৈরী করতে ব্যবহারের কিছু উদাহরন:

* স্বাগতপূর্ণ ভাষা ব্যবহার
* বিভিন্ন দৃষ্টিভঙ্গি এবং অভিজ্ঞতার প্রতি সম্মান
* মার্জিত ভাবে গঠনমূলক সমালোচনা গ্রহণ
* গোষ্ঠীর উন্নতিকে প্রাধান্য দেওয়া
* গোষ্ঠীর বাকি সদস্যদের প্রতি সহমর্মিতা দেখানো
  
  
গ্রহণযোগ্য নয়, অংশগ্রহণকারীদের এমন আচরণের উদাহরণ:......

*/

get_code(lang_name)

console.log(coc.get_code("English"));
// => en

supported_lang()

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'
]
*/

get_lang(language_id)

console.log(coc.get_lang("ko"));
//=> Korean

all_langs()

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', ................
}


*/

API

Modules


all_langs ⇒ Object

A module that returns a list of all languages

Returns: Object - - Object of all language in { id : name } format

supported_langs ⇒ 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 [email protected]

get_code ⇒ string

A module to get language Id of a language

Returns: string - - Language ID for the given language name
Author: Dipankar Pal [email protected]

| Param | Type | Description | | --- | --- | --- | | lang_name | string | An exact language name |

get_lang ⇒ string

A module to get language name from a language ID

Returns: string - - Language name for the language_id
Author: Dipankar Pal [email protected]

| Param | Type | Description | | --- | --- | --- | | lang_id | string | Language ID of a language |

get_coc ⇒ string

A module to export code-of-conduct text for a language ID

Returns: string - - Code-of-conduct for the language
Author: Dipankar Pal [email protected]

| Param | Type | Description | | --- | --- | --- | | lang_id | string | Language ID of the intended Language |

License

MIT (C) 2020 Dipankar Pal

Related

autobadge . qikstart . qikQR

Thanks