Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

word-break

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

word-break - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

index.d.ts

2

package.json
{
"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");
});
```
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