
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
mongoose-latinize
Advanced tools
store the latin form of a String field for easy searching
var mongoose_latinize = require('mongoose-latinize');
var user = new mongoose.Schema({ first_name: String });
user.plugin(mongoose_latinize, 'first_name');
This adds a new path to your schema, latin_first_name
, storing the lower-case, latinize
d copy of first_name
.
var user1 = new user({ first_name : 'Björk' });
user1.save(function(err, doc) {
console.log(doc.latin_first_name); // returns 'bjork'
});
You can pass a simple string containing the property name (as above), or an object, with the following
prop
- string, required - the data source for the latin_
-prefixed propertyindex
- bool, defaults true
- creates an index on the latin_
-prefixed property for fast searchingjson
- bool, defaults false
- determines whether to include the latinized property when calling .toJSON()
For example, to not use an index and to include the properties in JSON transforms:
var user = new mongoose.Schema({ first_name: String });
user.plugin(mongoose_latinize, {
prop: 'first_name',
index: false,
json: true
});
FAQs
store the latin form of a String field for easy searching
The npm package mongoose-latinize receives a total of 54 weekly downloads. As such, mongoose-latinize popularity was classified as not popular.
We found that mongoose-latinize 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 researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.