npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

composerize-ts

v0.6.2

Published

Turns docker run commands into docker-compose files!

Downloads

1,231

Readme

composerize-ts

CI npm

This is a very small tool to convert docker run/create commands into (hopefully) working docker-compose.yml files.

CLI

composerize-ts can be run in the cli.

npm install composerize-ts -g to install, and run as such:

$ composerize-ts docker run -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock:ro --restart always --log-opt max-size=1g nginx

Supported docker run/create options

| Docker run/create option | docker-compose equivalent | Remarks | |--------------------------|---------------------------|------------------------------------| | --add-host | extra_hosts | | | --blkio-weight | blkio_config.weight | | | --cap-add | cap_add | | | --cap-drop | cap_drop | | | --cgroupns | cgroup | | | --cgroup-parent | cgroup_parent | | | --cpu-count | cpu_count | | | --cpu-period | cpu_period | | | --cpu-quota | cpu_quota | | | --cpu-rt-period | cpu_rt_period | | | --cpu-rt-quota | cpu_rt_quota | | | --cpus | cpus | | | --cpuset-cpus | cpuset | | | --device | devices | | | --device-cgroup-rule | device_cgroup_rules | | | --dns | dns | | | --dns-option | dns_opt | | | --dns-search | dns_search | | | --domainname | domainname | | | --entrypoint | entrypoint | | | --env/-e | environment | | | --env-file | env_file | | | --hostname | hostname | | | --expose | expose | | | --group-add | group_add | | | --health-cmd | healthcheck.test | | | --health-interval | healthcheck.interval | | | --health-retries | healthcheck.retries | | | --health-start-period | healthcheck.start_period | | | --health-timeout | healthcheck.timeout | | | --init | init | | | --interactive/-i | stdin_open | | | --ipc | ipc | | | --isolation | isolation | | --label | labels | | | --link | links | | | --log-driver | logging.driver | | | --log-opt | logging.options | | | --mac-address | mac_address | | | --memory-swappiness | mem_swappiness | | | --name | container_name | | | --oom-kill-disable | oom_kill_disable | | | --oom-score-adj | oom_score_adj | | | --pid | pid | | | --pids-limit | pids_limit | | | --platform | platform | | | --privileged | privileged | | | --publish/-p | networks | adds a networks block as well | | --publish-all | | not convertable to docker-compose | | --pull | pull_policy | | | --read-only | read_only | | | --quiet | | not convertable to docker-compose | | --restart | restart | | | --rm | | not convertable to docker-compose | | --runtime | runtime | | | --security-opt | security_opt | | | --shm-size | shm_size | | | --stop-signal | stop_signal | | | --stop-timeout | stop_grace_period | | | --storage-opt | storage_opt | | | --sysctl | sysctls | | | --tmpfs | tmpfs | | | --tty/-t | tty | | | --ulimit | ulimit | | | --user | user | | | --userns | userns_mode | | | --volume/-v | volumes | | | --volumes-from | volumes_from | | | --workdir | working_dir | |

Technical documentation

You'll find the documentation in the docs folder.

Contributing

  • Clone a fork of the repo and install the project dependencies by running pnpm install
  • Make your changes, and build the project by running pnpm run build
  • Test your changes with pnpm run test

Maintainers

  • Carsten Götzinger