New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sindresorhus/string-hash

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sindresorhus/string-hash - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

index.d.ts

5

index.js
'use strict';
const fnv1a = require('@sindresorhus/fnv1a');
module.exports = fnv1a;
const stringHash = string => fnv1a(string);
module.exports = stringHash;
module.exports.default = stringHash;

17

package.json
{
"name": "@sindresorhus/string-hash",
"version": "1.0.0",
"version": "1.1.0",
"description": "Get the hash of a string",

@@ -12,5 +12,2 @@ "license": "MIT",

},
"publishConfig": {
"access": "public"
},
"engines": {

@@ -20,6 +17,7 @@ "node": ">=6"

"scripts": {
"test": "xo && ava"
"test": "xo && ava && tsd-check"
},
"files": [
"index.js"
"index.js",
"index.d.ts"
],

@@ -40,8 +38,9 @@ "keywords": [

"dependencies": {
"@sindresorhus/fnv1a": "^1.0.0"
"@sindresorhus/fnv1a": "^1.1.0"
},
"devDependencies": {
"ava": "*",
"xo": "*"
"ava": "^1.3.1",
"tsd-check": "^0.5.0",
"xo": "^0.24.0"
}
}

@@ -29,3 +29,3 @@ # string-hash [![Build Status](https://travis-ci.org/sindresorhus/string-hash.svg?branch=master)](https://travis-ci.org/sindresorhus/string-hash)

It returns a positive integer.
It returns the hash as a positive integer.

@@ -32,0 +32,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc