Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "word-break", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "word-break util for npl", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# word-break | ||
word-break util using a given dictionary | ||
## TypeScript | ||
```ts | ||
import wordBreak from "word-break"; | ||
test("wordBreak", async () => { | ||
const dict = ["samsung", "like", "i"]; | ||
const list = wordBreak(input, dict); | ||
expect(list.join("|")).toBe("i|like|samsung"); | ||
}); | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3315
6
58
17