https://github.com/zodern/meteor-package-versions
Meteor compiler to provide apps or packages with a list of packages used by the app and their versions.
https://github.com/zodern/meteor-package-versions
Last synced: 4 months ago
JSON representation
Meteor compiler to provide apps or packages with a list of packages used by the app and their versions.
- Host: GitHub
- URL: https://github.com/zodern/meteor-package-versions
- Owner: zodern
- License: mit
- Created: 2020-08-13T01:47:47.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-22T17:53:12.000Z (over 2 years ago)
- Last Synced: 2025-09-08T04:45:23.877Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# zodern:meteor-package-versions
A simple compiler which allows importing files named `.meteor-package-versions` to get an object containing the packages used by the app and their versions.
Compatible with Meteor 1.4 and newer.
1. Add the package with `meteor add zodern:meteor-package-versions`
2. Create a file named `.meteor-package-versions`. The content doesn't matter.
3. Import the file and use it
```js
import packages from './.meteor-package-versions';
console.dir(packages);
/*
Outputs:
{ 'allow-deny': '1.1.0',
autopublish: '1.0.7',
autoupdate: '1.4.1',
'babel-compiler': '7.1.1',
'babel-runtime': '1.2.7',
base64: '1.0.11',
'binary-heap': '1.0.10',
blaze: '2.3.3',
'blaze-html-templates': '1.1.2',
'blaze-tools': '1.0.10',
...
}
```
If the .meteor/versions file does not exist (such as when running `meteor test-packages`), the exported object will instead look like
```js
{
__errorRetrievingVersions: true
}
```