https://github.com/razroo/package-json-manager
Autonomous versioning for your package manager. Simply type `npm install <package-name-goes-here>` and install right package version.
https://github.com/razroo/package-json-manager
Last synced: about 2 months ago
JSON representation
Autonomous versioning for your package manager. Simply type `npm install <package-name-goes-here>` and install right package version.
- Host: GitHub
- URL: https://github.com/razroo/package-json-manager
- Owner: razroo
- License: mit
- Created: 2022-10-02T20:14:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-20T19:48:08.000Z (about 3 years ago)
- Last Synced: 2025-10-26T16:18:46.664Z (7 months ago)
- Language: TypeScript
- Homepage:
- Size: 2.29 MB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Package JSON Manager
* Rule #1: There are no rules
* Rule #2: Everything must be unit tested
* Rule #3: If you can be anything in life be kind

Package JSON Manager. Confirm that all packages can be correctly installed in a package json.
This library will enable foundation for something like
```
npm install @ngrx/store
```
and npm automatically installing the right version.
## Documentation
### Package Json Version Utils
```ts
// method to dynamically find package json
const packageJsonPath = findPackageJson(__dirname, )
// absolute path to directory
const projectDependencies = getProjectDependencies(packageJsonPath);
// languagesUsed will return e.g. ['angular', 'react', 'vue'];
const languagesUsed = determineLanguagesUsed(projectDependencies);
// languagesUsedWithVersionUsed will return e.g. ['angular-7.0.0', 'react-16.7.0', 'vue-15.0.0']
const languagesUsedWithVersionUsed = determineLanguagesWithVersionUsed(projectDependencies);
```
Note: We will soon have a separate documentation site for Package JSON Manager.