@@ -6,20 +6,22 @@ Finds degree of similarity between two strings, based on [Dice's Coefficient](ht
6
6
## Table of Contents
7
7
8
8
* [ Usage] ( #usage )
9
+ + [ For Node.js] ( #for-nodejs )
10
+ + [ For browser apps] ( #for-browser-apps )
9
11
* [ API] ( #api )
10
- * [ compareTwoStrings(string1, string2)] ( #comparetwostringsstring1-string2 )
11
- * [ Arguments] ( #arguments )
12
- * [ Returns] ( #returns )
13
- * [ Examples] ( #examples )
14
- * [ findBestMatch(mainString, targetStrings)] ( #findbestmatchmainstring-targetstrings )
15
- * [ Arguments] ( #arguments-1 )
16
- * [ Returns] ( #returns-1 )
17
- * [ Examples] ( #examples-1 )
12
+ + [ compareTwoStrings(string1, string2)] ( #comparetwostringsstring1-string2 )
13
+ * [ Arguments] ( #arguments )
14
+ * [ Returns] ( #returns )
15
+ * [ Examples] ( #examples )
16
+ + [ findBestMatch(mainString, targetStrings)] ( #findbestmatchmainstring-targetstrings )
17
+ * [ Arguments] ( #arguments-1 )
18
+ * [ Returns] ( #returns-1 )
19
+ * [ Examples] ( #examples-1 )
18
20
* [ Release Notes] ( #release-notes )
19
- * [ 2.0.0] ( #200 )
20
- * [ 3.0.0] ( #300 )
21
- * [ 3.0.1] ( #301 )
22
- * [ 4.0.0 ] ( #400 )
21
+ + [ 2.0.0] ( #200 )
22
+ + [ 3.0.0] ( #300 )
23
+ + [ 3.0.1] ( #301 )
24
+ + [ 4.0.1 ] ( #401 )
23
25
24
26
25
27
## Usage
@@ -44,9 +46,9 @@ var matches = stringSimilarity.findBestMatch('healed', ['edward', 'sealed', 'the
44
46
45
47
#### For browser apps
46
48
47
- Include ` <script> //unpkg.com/string-similarity/umd/string-similarity.min.js</script> ` to get the latest version.
49
+ Include ` <script src=" //unpkg.com/string-similarity/umd/string-similarity.min.js"> </script> ` to get the latest version.
48
50
49
- Or ` <script> //unpkg.com/string-similarity@3 .0.0 /umd/string-similarity.min.js</script> ` to get a specific version (3 .0.0 ) in this case.
51
+ Or ` <script src=" //unpkg.com/string-similarity@4 .0.1 /umd/string-similarity.min.js"> </script> ` to get a specific version (4 .0.1 ) in this case.
50
52
51
53
This exposes a global variable called ` stringSimilarity ` which you can start using.
52
54
@@ -145,7 +147,7 @@ stringSimilarity.findBestMatch('Olive-green table for sale, in extremely good co
145
147
* Refactoring: removed unused functions; used ` substring ` instead of ` substr `
146
148
* Updated dependencies
147
149
148
- ### 4.0.0
150
+ ### 4.0.1
149
151
* Distributing as an UMD build to be used in browsers.
150
152
151
153
![ Build status] ( https://codeship.com/projects/2aa453d0-0959-0134-8a76-4abcb29fe9b4/status?branch=master )
0 commit comments