https://github.com/renddslow/version-ticker-node
https://github.com/renddslow/version-ticker-node
npm versions
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/renddslow/version-ticker-node
- Owner: Renddslow
- License: other
- Created: 2019-01-11T02:13:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-11T03:27:57.000Z (over 6 years ago)
- Last Synced: 2025-01-21T17:25:51.752Z (5 months ago)
- Topics: npm, versions
- Language: JavaScript
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Version Ticker
Version ticker is designed as a simple server that will periodically (with the help of cron) fetch the versions of a list of npm modules.
## Getting Started
`yarn add version-ticker`
### Manifest
Version Ticker operates with the help of a manifest file that contains optional lists of npm organizations, users, and modules.
```
{
"orgs": ["dmsi","flatland"],
"users": ["renddslow", "tehshrike", "saibotsivad"],
"modules": ["onesignal-promise"],
"exclude": ["@dmsi/core"]
}
```| Prop | Description |
| --- | --- |
| `orgs` | An array of npm organization names. The version ticker will fetch all of the modules that your user has access to and cache their names locally. |
| `users` | An array of npm users. The version ticker will fetch all the modules that your user has access to and cache their names locally. |
| `modules` | An array of module names. |
| `excludes` | Modules that should be excluded from the list of versions checked. This is useful when there are more modules that a user or org has than you wish to limit. |### CLI
The Version Ticker runs on a time delay, fetching results based on a cached list of module names generated at start up.
| Prop | Description |
| --- | --- |
| `-u --username [username]` | npm username |
| `-p --password [password]` | (Optional) npm passsword. If you do not provide it, you will be prompted for it. |
| `[port]` | The port the server should listen on. Defaults to 8080. |
| `-f --filename [filename]` | The relative path to your manifest.json. Defaults to check for a manifest in your current directory. |
| `--interval [interval]` | | |As of `1.0.0` the response is logged to the console in the following format:
```
[
{ version: , name: },
...
]
```