{"id":13394538,"url":"https://github.com/victorb/trymodule","last_synced_at":"2025-04-13T00:48:07.487Z","repository":{"id":57380442,"uuid":"53832745","full_name":"victorb/trymodule","owner":"victorb","description":"➰ It's never been easier to try nodejs modules!","archived":false,"fork":false,"pushed_at":"2017-04-03T21:24:45.000Z","size":389,"stargazers_count":1137,"open_issues_count":16,"forks_count":30,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-13T00:48:03.619Z","etag":null,"topics":["developer-experience","developer-tools","javascript","nodejs","nodejs-modules","repl"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/victorb.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-14T06:35:38.000Z","updated_at":"2025-04-06T05:25:32.000Z","dependencies_parsed_at":"2022-09-05T13:51:37.833Z","dependency_job_id":null,"html_url":"https://github.com/victorb/trymodule","commit_stats":null,"previous_names":["victorbjelkholm/trymodule"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorb%2Ftrymodule","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorb%2Ftrymodule/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorb%2Ftrymodule/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorb%2Ftrymodule/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/victorb","download_url":"https://codeload.github.com/victorb/trymodule/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650437,"owners_count":21139672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["developer-experience","developer-tools","javascript","nodejs","nodejs-modules","repl"],"created_at":"2024-07-30T17:01:23.126Z","updated_at":"2025-04-13T00:48:07.465Z","avatar_url":"https://github.com/victorb.png","language":"JavaScript","readme":"## trymodule [![Circle CI](https://circleci.com/gh/VictorBjelkholm/trymodule/tree/master.svg?style=svg)](https://circleci.com/gh/VictorBjelkholm/trymodule/tree/master)\n\nA simple cli tool for trying out different nodejs modules.\n\n![trymodule demo](preview.gif)\n\n## Installation\n\n`npm install -g trymodule`\n\n## Usage\n\n`trymodule colors`\n\nDownloads the module colors if needed, and starts a nodejs REPL with colors loaded in the current scope, ready for you to use.\n\n`trymodule colors lodash`\n\nSame as above but with many packages in one go!\n\n`trymodule colors=c lodash=l`\n\nAssign packages to custom variable names.\n\n`trymodule --clear`\n\nRemoves the directory where trymodules stores the node modules. Removes `TRYMODULE_PATH + '/node_modules'`\n\n## Configuration\n\nThere are a couple of environment variables you can use to customize trymodule.\n\n`TRYMODULE_PATH` for setting the path of where modules are stored. By default this is `$HOME/.trymodule` or `$USERPROFILE/.trymodule`\n\n`TRYMODULE_NONINTERACTIVE` for making trymodule not fire up the repl in the end. This is useful if you want to just install some packages for future use. By default this is undefined. Setting it to any value would make trymodule non-interactive.\n\n`TRYMODULE_HISTORY_PATH` for changing where to save the repl history. Should be pointing to a user write-able file. Defaults to `$TRYMODULE_PATH/repl_history`\n\nYou can set the environment variables for one session with `export TRYMODULE_PATH=/usr/bin/trymodule` or for just one time by doing `TRYMOUDLE_PATH=/usr/bin/trymodule trymodule colors`.\n\n## Support / Help\n\nIf you have any questions, open a Github issue here:\n[github.com/VictorBjelkholm/trymodule/issues/new](https://github.com/VictorBjelkholm/trymodule/issues/new)\n\nor feel free to contact me on Twitter here:\n[@VictorBjelkholm](https://twitter.com/VictorBjelkholm)\n\n## Inspiration\n\nInspiration comes from a leiningen plugin called [lein-try](https://github.com/rkneufeld/lein-try) that allows you to try out clojure libraries without having to declare them in an existing project. Thanks to [@rkneufeld](https://github.com/rkneufeld) for the inspiration!\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2016 Victor Bjelkholm\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":["JavaScript","Packages","包"],"sub_categories":["Command-line apps","命令行程序"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorb%2Ftrymodule","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvictorb%2Ftrymodule","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorb%2Ftrymodule/lists"}