@flownet/lib-parse-node-url
Advanced tools
Comparing version 0.1.16 to 0.1.17
{ | ||
"name": "@flownet/lib-parse-node-url", | ||
"version": "0.1.16", | ||
"version": "0.1.17", | ||
"files": [ | ||
"dist/*" | ||
], | ||
"main": "dist/default/cjs/index.js", | ||
"module": "dist/default/esm/index.js", | ||
"types": "dist/default/types/index.d.ts", | ||
"main": "dist/default/esm/index.js", | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"import": "./dist/default/esm/index.js", | ||
"require": "./dist/default/cjs/index.cjs" | ||
} | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://gitlab.com/fnetai/lib-parse-node-url.git" | ||
}, | ||
"license": "MIT", | ||
"dependencies": { | ||
"chalk": "^4", | ||
"url-parse": "^1", | ||
"url-parse": "^1.5", | ||
"yargs": "^17" | ||
@@ -14,0 +23,0 @@ }, |
@@ -1,19 +0,15 @@ | ||
## Core Node Overview: `lib-parse-node-url` | ||
# @flownet/lib-parse-node-url | ||
### Description | ||
The project is essentially a URL parsing library built with a primary focus on handling and parsing URLs, making it significantly easier for developers to extract specific components of a URL. It uses the popular 'url-parse' module, which provides extensive functionalities for URL parsing. | ||
The `lib-parse-node-url` Core Node is specifically tailored for Flownet, designed to meticulously parse and dissect node URLs used within the Flownet environment. Leveraging the `url-parse` utility, it's finely tuned to resonate with Flownet's internal structure and requirements. | ||
## Functionality | ||
### Features | ||
Upon feeding a URL into the module's primary function, the software separates the URL into its various components, such as protocol, host, port, pathname, query, and fragment. This parsing functionality becomes critical when a developer needs to manipulate URLs or isolate particular sections from them. | ||
1. **URL Parsing**: Analyzes a given URL, breaking it down into components, such as protocol, hostname, pathname, and more. | ||
2. **Base URL Integration**: When provided with a base URL, it uses this as the foundation for parsing. | ||
3. **Customized Parser Support**: Allows integration of an optional parser for parsing routines tailored to specific needs. | ||
4. **Error Tolerance**: Returns `null` for undefined URLs, ensuring unnecessary errors are bypassed. | ||
The library offers more versatility by giving you the option of feeding in a base URL. In such cases, the input URL is considered relative to this base URL. This is crucial when handling relative URLs, i.e., URLs that are incomplete or relate to a certain web address. | ||
### Use Cases | ||
**isNull**: The function returns null if the input is not a valid URL, which could be beneficial in validating and sanitizing URL inputs. | ||
- **Flownet Node Routing**: Within Flownet, determining which operations need to be executed based on a specific node's URL. | ||
- **Flownet Development Processes**: During development or debugging stages, it provides developers with the capability to inspect and manipulate URLs effectively. | ||
The parser argument allows users to specify a custom parsing function, which can override the default parsing behavior. This feature could be handy when the users have specific parsing requirements that are not covered by the standard parsing behavior. | ||
The `lib-parse-node-url` caters perfectly to Flownet's inner workings and demands. This customized Core Node delivers URL parsing with a user-friendly interface, simplifying the process while ensuring precision. It aids in crafting a more efficient and error-free routing and processing structure within the Flownet platform. | ||
The library is relatively simple but can significantly streamline tasks that involve handling and manipulating URLs and provide custom parsing methods to adequately cater to unique requirements. |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
45786
2
8
0
1350
0
Yes
15
- Removedchalk@^4
- Removedchalk@4.1.2(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedsupports-color@7.2.0(transitive)
Updatedurl-parse@^1.5