Skip to content

Commit 9a735d5

Browse files
committed
build(js-utils):v2.0.0
1 parent d46cf02 commit 9a735d5

File tree

7 files changed

+53
-172
lines changed

7 files changed

+53
-172
lines changed

libs/javascript/utils/README.md

Lines changed: 14 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,25 @@
1-
# Utilities (`@studiohyperdrive/utils`)
1+
# Javascript Tools: Utils (`@studiohyperdrive/utils`)
2+
3+
`@studiohyperdrive/utils` is a set of common Javascript based utils.
4+
5+
## Installation
26

37
Install the package first:
8+
49
```shell
510
npm install @studiohyperdrive/utils
611
```
712

8-
## 1. Object
9-
10-
A set of Object based helpers.
11-
12-
### getKeyByValue
13-
The getKeyByValue helper function will search for a key within an object, based on the provided value.
14-
15-
[Full documentation.](./docs/object/get-key-by-value/get-key-by-value.util.md)
16-
17-
### merge
18-
Merges all arguments into a single object, as long as the property has a value.
19-
20-
[Full documentation.](./docs/object/merge/merge.util.md)
21-
22-
## 2. String
23-
24-
A set of String based helpers.
25-
26-
### camelCaseToSentence
27-
Converts a camelCase string to a human-readable sentence.
28-
29-
[Full documentation.](./docs/string/camel-case-to-sentence/camel-case-to-sentence.util.md)
30-
31-
### replaceHtmlWhitespace
32-
Returns the filtered html as a string that has replaced the non-breakable whitespaces with regular spaces.
33-
34-
[Full documentation.](./docs/string/replace-whitespace/replace-whitespace.util.md)
35-
36-
### stringComparator
37-
Compares two strings alphabetically using localeCompare.
38-
39-
[Full documentation.](./docs/string/string-comparator/string-comparator.util.md)
13+
## Versioning and build information
4014

41-
## build information
42-
This project has been build with:
43-
- nodejs: `18.17.0`
44-
- npm: `9.6.7`
15+
This package will follow a semver-like format, `major.minor.patch`, in which:
4516

46-
For a complete list of packages and version check out the `package.json` file.
17+
- `major`: Introduces new features or breaking changes
18+
- `minor`: Introduces minor non-breaking changes
19+
- `patch`: Introduces bugfixes
4720

48-
## Team
21+
For more information about the build process, authors, contributions and issues, we refer to the [hyperdrive-opensource](https://github.com/studiohyperdrive/hyperdrive-opensource) repository.
4922

50-
This bundle of tools has been created and is maintained by [Studio Hyperdrive](https://studiohyperdrive.be).
23+
## Documentation
5124

52-
Contributors:
53-
- [Denis Valcke](https://github.com/DenisValcke)
54-
- [Iben Van de Veire](https://github.com/IbenTesara)
55-
- [Wouter Heirstrate](https://github.com/WHeirstrate)
25+
To find more information regarding this package, we refer to [our documentation platform](https://open-source.studiohyperdrive.be/docs/javascript/utils/introduction).

libs/javascript/utils/docs/object/get-key-by-value/get-key-by-value.util.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

libs/javascript/utils/docs/object/merge/merge.util.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

libs/javascript/utils/docs/string/camel-case-to-sentence/camel-case-to-sentence.util.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

libs/javascript/utils/docs/string/replace-whitespace/replace-whitespace.util.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

libs/javascript/utils/docs/string/string-comparator/string-comparator.util.md

Lines changed: 0 additions & 34 deletions
This file was deleted.

libs/javascript/utils/package.json

Lines changed: 39 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,40 @@
11
{
2-
"name": "@studiohyperdrive/utils",
3-
"version": "1.0.2",
4-
"license": "MIT",
5-
"main": "./index.js",
6-
"module": "./index.mjs",
7-
"typings": "./index.d.ts",
8-
"peerDependencies": {
9-
"obj-clean": "^3.0.1",
10-
"vite": "5.4.11",
11-
"@nx/vite": "20.2.1",
12-
"vite-plugin-dts": "4.3.0"
13-
}
14-
}
2+
"name": "@studiohyperdrive/utils",
3+
"version": "2.0.0",
4+
"description": "A package containing common Javascript utils.",
5+
"keywords": [
6+
"file",
7+
"number",
8+
"object",
9+
"string",
10+
"range",
11+
"get-key-by-value",
12+
"merge",
13+
"search-recursively",
14+
"camel-case-to-sentence",
15+
"normalize-string",
16+
"replace-whitespace",
17+
"search-string",
18+
"string-comparator"
19+
],
20+
"homepage": "https://open-source.studiohyperdrive.be/docs/javascript/utils/introduction",
21+
"author": {
22+
"name": "Studio Hyperdrive",
23+
"url": "https://studiohyperdrive.be/"
24+
},
25+
"repository": {
26+
"type": "git",
27+
"url": "https://github.com/studiohyperdrive/hyperdrive-opensource",
28+
"directory": "libs/javascript/rxjs/src"
29+
},
30+
"license": "MIT",
31+
"main": "./index.js",
32+
"module": "./index.mjs",
33+
"typings": "./index.d.ts",
34+
"peerDependencies": {
35+
"obj-clean": "^3.0.1",
36+
"vite": "5.4.11",
37+
"@nx/vite": "20.2.1",
38+
"vite-plugin-dts": "4.3.0"
39+
}
40+
}

0 commit comments

Comments
 (0)