
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
@lbennett/grape-jelly
Advanced tools
JavaScript serializer library inspired by ruby-grape/grape-entity
I was jelly of ruby-grape's grape-entity gem so here we have a JavaScript serializer framework inspired by grape-entity. It is not intended to be a complete implementation of grape-entity.
npm install @lbennett/grape-jelly
# OR
yarn add @lbennett/grape-jelly
Define entities by extending the Entity class.
You must implement a define method that defines the entity using
Entity.prototype.expose.
import { Entity } from '@lbennett/grape-jelly';
class UserEntity extends Entity {
define() {
this.expose('username', { as: 'not_username' });
this.expose('password', user => user.notPassword);
}
}
You can use Entity.prototype.represent to serialize your object.
import UserEntity from './UserEntity';
const data = {
username: 'foo',
password: 'bar',
notPassword: 'raboof',
otherValue: 'not included',
};
const entity = new UserEntity();
const serializedData = entity.represent(data);
console.log(serializedData);
// { not_username: 'foo', password: 'raboof' }
FAQs
JavaScript serializer library inspired by ruby-grape/grape-entity
We found that @lbennett/grape-jelly 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
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.