Gathering detailed insights and metrics for try-module.cloud
Gathering detailed insights and metrics for try-module.cloud
Gathering detailed insights and metrics for try-module.cloud
Gathering detailed insights and metrics for try-module.cloud
npm install try-module.cloud
Typescript
Module System
Node Version
NPM Version
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
5
A CLI tool for publishing npm packages to try-module.cloud for preview, testing, and sharing.
try-module.cloud allows you to easily share and preview npm packages without publishing them to the npm registry. It's ideal for testing packages in pull requests, sharing modules with teammates, or previewing changes before official releases.
1# Install globally 2npm install -g try-module.cloud 3 4# Or use with npx 5npx try-module.cloud publish [options]
Before publishing packages, you need to authenticate with your organization's API key using the auth
command:
1# Store your API key for an organization 2try-module.cloud auth myorg your_api_key_here 3 4# List stored organizations 5try-module.cloud auth --list 6 7# View stored key for an organization (masked) 8try-module.cloud auth myorg 9 10# Remove stored API key 11try-module.cloud auth myorg --remove
Once authenticated, you can publish packages using the publish
command:
1# Publish using stored credentials 2try-module.cloud publish --organization myorg [path]
auth <organization> <api-key>
: Store API key for an organizationauth --list
: List all stored organizationsauth <organization>
: View stored API key (masked)auth <organization> --remove
: Remove stored API keypublish --organization <org> [path]
: Publish package to try-module.cloud
--organization
: Your organization name (required for publishing)--list, -l
: List stored organizations (auth command)--remove, -r
: Remove stored API key (auth command)path
: Path to your package directory (defaults to current directory)TRY_MODULE_SECRET
: Your API key for publishing (overrides stored credentials)1# Store API key once 2try-module.cloud auth myorg your_secret_key 3 4# Publish using stored credentials 5try-module.cloud publish --organization myorg ./my-package 6 7# Override with environment variable (backward compatibility) 8TRY_MODULE_SECRET=your_secret try-module.cloud publish --organization myorg ./my-package 9 10# List all stored organizations 11try-module.cloud auth --list 12 13# Remove stored credentials 14try-module.cloud auth myorg --remove
After successful publishing, the CLI will display a URL that can be used to install your package.
You can automatically publish your package on pull requests using the provided GitHub Action.
1name: Publish to try-module.cloud 2 3on: 4 pull_request: 5 6permissions: 7 pull-requests: write 8 contents: read 9 10jobs: 11 publish: 12 runs-on: ubuntu-latest 13 steps: 14 - name: Checkout code 15 uses: actions/checkout@v4 16 17 - name: Publish to try-module.cloud 18 uses: TorstenDittmann/try-module-action@main 19 with: 20 organization: your-organization 21 directory: ./path-to-package 22 secret: ${{ secrets.TRY_MODULE_SECRET }} 23 github-token: ${{ secrets.GITHUB_TOKEN }}
After publishing, you'll receive a URL that can be used to install your package:
1# With npm 2npm install https://try-module.cloud/your-organization/package-name@commit-hash 3 4# With yarn 5yarn add https://try-module.cloud/your-organization/package-name@commit-hash 6 7# With pnpm 8pnpm add https://try-module.cloud/your-organization/package-name@commit-hash
The tool:
npm pack
For versioning, the tool automatically detects the environment and uses the appropriate commit hash:
ISC - Created by Torsten Dittmann
No vulnerabilities found.
No security vulnerabilities found.