Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
evenin
Advanced tools
Readme
Detect, search and list general greetings for a large amount of languages.
$ npm install --save evenin
const greetings = require("evenin");
// Check if a string contains a greeting:
greetings.hasGreeting("Hello, world!");
//=> true
greetings.hasGreeting("Goodbye, world!");
//=> false
// Check if a string _is_ a greeting:
greetings.isGreeting("hello");
//=> true
greetings.isGreeting("goodbye");
//=> false
// Look up a specific greeting across all languages:
greetings.findGreetings("hello");
//=> [ { phrase: 'Hello',
// explanation: 'formal greeting',
// language:
// { name: 'English',
// url: 'http://www-01.sil.org/iso639-3/documentation.asp?id=eng',
// location: 'United Kingdom, United States of America, Canada, Australia, various other countries.',
// greetings: [Array] } },
// { phrase: 'Hello',
// explanation: 'general greeting',
// language:
// { name: 'Guyanese Creole',
// url: 'http://www-01.sil.org/iso639-3/documentation.asp?id=gyn',
// location: 'Guyana.',
// greetings: [Array] } },
// { phrase: 'Hello',
// explanation: 'general greeting',
// language:
// { name: 'Malay, Central',
// url: 'http://www-01.sil.org/iso639-3/documentation.asp?id=pse',
// location: 'Indonesia: Sumatra.',
// greetings: [Array] } } ]
// Look up all greetings starting with the specified prefix:
greetings.findGreetings("g'");
//=> [ { phrase: 'G\'day',
// explanation: 'general greeting used in some parts of Australia [eng-aus]',
// language:
// { name: 'English',
// url: 'http://www-01.sil.org/iso639-3/documentation.asp?id=eng',
// location: 'United Kingdom, United States of America, Canada, Australia, various other countries.',
// greetings: [Array] } } ]
// Find information on a language and all greetings logged for that language:
greetings.getLanguage("english");
//=> { name: 'English',
// url: 'http://www-01.sil.org/iso639-3/documentation.asp?id=eng',
// location: 'United Kingdom, United States of America, Canada, Australia, various other countries.',
// greetings:
// [ { phrase: 'Hello', explanation: 'formal greeting' },
// { phrase: 'Hi', explanation: 'informal greeting' },
// ...
// ] }
This project is largely a joke and hasn't really been tested. If you run into a problem, feel free to make an issue though. I'd be interested to see if people have an actual use for this. All the greetings are from Jennifer's Language Page which is honestly an amazing resource.
FAQs
Ever wondered if a text contained a greeting? Then needed that functionality in over a thousand languages and dialects? Me neither.
The npm package evenin receives a total of 4 weekly downloads. As such, evenin popularity was classified as not popular.
We found that evenin 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.