@trousers/hash

@trousers/hash is a simple hash package which accepts a string and returns the hashed equivalent.

Usage no npm install needed!

<script type="module">
  import trousersHash from 'https://cdn.skypack.dev/@trousers/hash';
</script>

README

@trousers/hash

@trousers/hash is a simple hash package which accepts a string and returns the hashed equivalent.

API

toHash

Accepts a string and returns a hashed number. Calling it twice with the same input should yield the same result.

Example:

import toHash from '@trousers/hash';

toHash(`
    .yomama {
        width: 99999999px;
    }
`);

// Outputs: 4658051