@vltpkg/fast-split 0.0.0-0.1730239248325 → 0.0.0-10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +15 -11
  2. package/package.json +19 -13
package/README.md CHANGED
@@ -1,18 +1,22 @@
1
- # `@vltpkg/fast-split`
1
+ ![fast-split](https://github.com/user-attachments/assets/0181afb7-0e03-41e6-b85c-2b5095b5d263)
2
2
 
3
- This is a very fast alternative to `String.split()`, which can be
4
- used to quickly parse a small-to-medium sized string by a given
5
- delimiter.
3
+ # @vltpkg/fast-split
6
4
 
7
- ## HOW FAST IS IT!?
5
+ This is a very fast alternative to `String.split()`, which can be used
6
+ to quickly parse a small-to-medium sized string by a given delimiter.
8
7
 
9
- This is about 10% faster for splitting short strings by a short delimiter.
10
- When we have to walk the resulting list for any reason, or limit the number
11
- of items returned, it's an even bigger difference.
8
+ **[It's fast](#how-fast-is-it)** · **[Usage](#usage)**
9
+
10
+ ## How Fast Is It!?
11
+
12
+ This is about 10% faster for splitting short strings by a short
13
+ delimiter. When we have to walk the resulting list for any reason, or
14
+ limit the number of items returned, it's an even bigger difference.
12
15
 
13
16
  2024 M1 macbook pro, using node 20.11.0, v8 version 11.3.244.8-node.17
14
- Counts are operations per ms, splitting the string '1.2.3-asdf+foo' by the
15
- delimiter '.', transforms calling part.toUpperCase(), and limits at 2 items
17
+ Counts are operations per ms, splitting the string '1.2.3-asdf+foo' by
18
+ the delimiter '.', transforms calling part.toUpperCase(), and limits
19
+ at 2 items
16
20
 
17
21
  ```
18
22
  split 10385.779
@@ -26,7 +30,7 @@ fastSplitEmptyCheck 11273.537
26
30
  fastSplitLimit 13257.948
27
31
  ```
28
32
 
29
- ## USAGE
33
+ ## Usage
30
34
 
31
35
  ```js
32
36
  import { fastSplit } from '@vltpkg/fast-split'
package/package.json CHANGED
@@ -1,9 +1,15 @@
1
1
  {
2
2
  "name": "@vltpkg/fast-split",
3
3
  "description": "A fast way to split small-to-medium sized strings by small string delimiters",
4
- "version": "0.0.0-0.1730239248325",
4
+ "version": "0.0.0-10",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/vltpkg/vltpkg.git",
8
+ "directory": "src/fast-split"
9
+ },
5
10
  "tshy": {
6
11
  "selfLink": false,
12
+ "liveDev": true,
7
13
  "dialects": [
8
14
  "esm"
9
15
  ],
@@ -13,19 +19,19 @@
13
19
  }
14
20
  },
15
21
  "devDependencies": {
16
- "@eslint/js": "^9.8.0",
17
- "@types/eslint__js": "^8.42.3",
18
- "@types/node": "^22.4.1",
19
- "eslint": "^9.8.0",
20
- "prettier": "^3.3.2",
21
- "tap": "^21.0.1",
22
+ "@eslint/js": "^9.25.0",
23
+ "@types/node": "^22.14.1",
24
+ "eslint": "^9.25.0",
25
+ "prettier": "^3.5.3",
26
+ "tap": "^21.1.0",
22
27
  "tshy": "^3.0.2",
23
- "typescript": "^5.5.4",
24
- "typescript-eslint": "^8.0.1"
28
+ "typedoc": "~0.27.6",
29
+ "typescript": "5.7.3",
30
+ "typescript-eslint": "^8.30.1"
25
31
  },
26
32
  "license": "BSD-2-Clause-Patent",
27
33
  "engines": {
28
- "node": "20 || >=22"
34
+ "node": ">=22"
29
35
  },
30
36
  "tap": {
31
37
  "extends": "../../tap-config.yaml"
@@ -51,9 +57,9 @@
51
57
  "format:check": "prettier --check . --ignore-path ../../.prettierignore --cache",
52
58
  "lint": "eslint . --fix",
53
59
  "lint:check": "eslint .",
54
- "presnap": "tshy",
55
60
  "snap": "tap",
56
- "pretest": "tshy",
57
- "test": "tap"
61
+ "test": "tap",
62
+ "posttest": "tsc --noEmit",
63
+ "typecheck": "tsc --noEmit"
58
64
  }
59
65
  }