Skip to content

Latest commit

 

History

History
73 lines (58 loc) · 1.74 KB

File metadata and controls

73 lines (58 loc) · 1.74 KB
layout default
menu_item api
title Hashsig
description Version 0.26.1
return_to
API Documentation Index
/api/
sections
create createFromFile #compare OPTION
#create
#createFromFile
#compare
#OPTION

Hashsig.create AsyncExperimental

Hashsig.create(buf, buflen, opts).then(function(hashsig) {
  // Use hashsig
});
Parameters Type
buf String
buflen Number
opts Number
Returns
Hashsig

Hashsig.createFromFile AsyncExperimental

Hashsig.createFromFile(path, opts).then(function(hashsig) {
  // Use hashsig
});
Parameters Type
path String
opts Number
Returns
Hashsig

Hashsig#compare SyncExperimental

var result = hashsig.compare(b);

| Parameters | Type | | --- | --- | --- | | b | Hashsig | |

Returns
Number

Hashsig.OPTION ENUM

| Flag | Value | | --- | --- | --- | | Hashsig.OPTION.NORMAL | 0 | | Hashsig.OPTION.IGNORE_WHITESPACE | 1 | | Hashsig.OPTION.SMART_WHITESPACE | 2 | | Hashsig.OPTION.ALLOW_SMALL_FILES | 4 |