All Projects → luin → Npm Try

luin / Npm Try

🚆 Quickly try npm packages without writing boilerplate code.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Npm Try

Gub
CLI tool for create an npm package from any repos. 🐳
Stars: ✭ 31 (-69.9%)
Mutual labels:  cli, package, npm
Npmarket
🛒 More efficient search for node packages.
Stars: ✭ 91 (-11.65%)
Mutual labels:  package, npm, tool
Xa
Beautiful & Customizable logger ❤️
Stars: ✭ 78 (-24.27%)
Mutual labels:  cli, package, npm
Wasm Pack
This tool seeks to be a one-stop shop for building and working with rust- generated WebAssembly that you would like to interop with JavaScript, in the browser or with Node.js. wasm-pack helps you build rust-generated WebAssembly packages that you could publish to the npm registry, or otherwise use alongside any javascript packages in workflows that you already use, such as webpack.
Stars: ✭ 3,848 (+3635.92%)
Mutual labels:  cli, package, npm
Npkill
List any node_modules directories in your system, as well as the space they take up. You can then select which ones you want to erase to free up space.
Stars: ✭ 5,325 (+5069.9%)
Mutual labels:  cli, npm, tool
Release It
🚀 Automate versioning and package publishing
Stars: ✭ 4,773 (+4533.98%)
Mutual labels:  cli, npm, tool
Npmvet
A simple CLI tool for vetting npm package versions
Stars: ✭ 193 (+87.38%)
Mutual labels:  cli, package, npm
Typac
install npm packages along with corresponding typings
Stars: ✭ 29 (-71.84%)
Mutual labels:  cli, package, npm
Pizza Cli
🍕 Order a pizza in a CLI app (just for fun!)
Stars: ✭ 58 (-43.69%)
Mutual labels:  cli, npm, tool
Labeler
Manage labels on GitHub as code
Stars: ✭ 78 (-24.27%)
Mutual labels:  cli, tool
Enseada
A Cloud native multi-package registry
Stars: ✭ 80 (-22.33%)
Mutual labels:  package, npm
Fileinfo
📄Get information on over 10,000 file extensions right from the terminal
Stars: ✭ 86 (-16.5%)
Mutual labels:  cli, tool
Emma Cli
📦 Terminal assistant to find and install node packages.
Stars: ✭ 1,201 (+1066.02%)
Mutual labels:  cli, npm
Redrun
✨🐌 🐎✨ fastest npm scripts runner
Stars: ✭ 85 (-17.48%)
Mutual labels:  cli, npm
Nostromo
CLI for building powerful aliases
Stars: ✭ 76 (-26.21%)
Mutual labels:  cli, tool
Image To Xls
A simple tool to make ascii art from an image using excel colored cells.
Stars: ✭ 75 (-27.18%)
Mutual labels:  cli, tool
Boilr
⚡️ boilerplate template manager that generates files or directories from template repositories
Stars: ✭ 1,268 (+1131.07%)
Mutual labels:  cli, tool
Nps
NPM Package Scripts -- All the benefits of npm scripts without the cost of a bloated package.json and limits of json
Stars: ✭ 1,285 (+1147.57%)
Mutual labels:  cli, npm
Starred search
Fuzzy search your list of starred ★ repositories on GitHub
Stars: ✭ 89 (-13.59%)
Mutual labels:  cli, tool
Rundeck Cli
CLI tool for Rundeck
Stars: ✭ 98 (-4.85%)
Mutual labels:  cli, tool

npm-try

🚆 Quickly try npm packages without writing boilerplate code.

asciicast

Build Status Commitizen friendly npm latest version

npm-try provides a REPL interface for you to try NPM packages without writing any boilerplate code.

Simply run npm-try [packages ..] anywhere on the shell and npm-try will show a REPL interface which has all packages installed and assigned to variables.

Features

  • Super easy to use!
  • npm-try even defines variables for you
  • Top-level await support (requires Node.js >= 10)

Install

$ npm install -g npm-try-cli

Examples

Wanna try the capitalize method of lodash package?

$ npm-try lodash
✔ const lodash = require('lodash')
> lodash.capitalize('hello world')
'Hello world'

Would like to try multiple packages at the same time?

$ npm-try lodash underscore
✔ const lodash = require('lodash')
✔ const underscore = require('underscore')
> lodash.first([1, 2, 3])
1
> underscore.first([1, 2, 3])
1

A previous version? You can specify versions with @ symbol (Missing the old days when the pluck still exists).:

$ npm-try [email protected]
✔ const lodash = require('lodash')
> lodash.pluck
[Function: pluck]

Asynchronous operations? await is supported out-of-the-box. Let's try ioredis:

$ npm-try ioredis
✔ const Redis = require('ioredis')
> const redis = new Redis()
undefined
> await redis.get('foo')
'123'

Create a Project

REPL is not enough sometimes when you want to write more code to test with packages. npm-try offers --out-dir/-o option to create a self-contained project so you can write your test code at the drop of a hat.

$ npm-try lodash -o try-lodash
✔ Installing lodash...
✔ The project created at /Users/luin/try-lodash

Limitations

Testing multiple versions of the same package is not supported. The following command will only have [email protected] provided:

$ npm-try [email protected] [email protected]
✔ const lodash = require('lodash')
✔ const lodash = require('lodash')
> lodash.VERSION
'3.10.1'

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].