You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@emotion/hash

Package Overview
Dependencies
Maintainers
4
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emotion/hash

A MurmurHash2 implementation


Version published
Maintainers
4
Created

Package description

What is @emotion/hash?

@emotion/hash is a small utility for generating hash values from strings. It is often used in CSS-in-JS libraries to create unique class names based on the content of the styles.

What are @emotion/hash's main functionalities?

Generate Hash

This feature allows you to generate a hash value from a given string. The hash function takes a string as input and returns a unique hash value.

const hash = require('@emotion/hash');
const hashedValue = hash('some string to hash');
console.log(hashedValue);

Other packages similar to @emotion/hash

Readme

Source

@emotion/hash

A MurmurHash2 implementation

import hash from '@emotion/hash'

hash('some-string') // 12fj1d

The source of this is from https://github.com/garycourt/murmurhash-js/blob/master/murmurhash2_gc.js.

FAQs

Package last updated on 19 Jul 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc