CLI node modules
lessonDuration 2m 7sFree
Many node modules provide a command line interface. In this lesson, we'll look at how to use them, as well as how to avoid `npm install -g` for "global" tools.
Browse
Find courses, lessons, articles, talks, and podcasts.
245 results for "npm"
Showing 241–245 · Page 11 of 11
lessonDuration 2m 7sFree
Many node modules provide a command line interface. In this lesson, we'll look at how to use them, as well as how to avoid `npm install -g` for "global" tools.
lesson
lessonDuration 2m 48sFree
We all have various tasks we need to accomplish with images. Whether it's resizing, optimizing, organizing, uploading, or anything else. Script Kit provides a `drop` component so you can simply drag and drop images into a script and process them in whatever way matches your workflow. [Open drop-image in Script Kit](https://scriptkit.com/api/new?name=drop-image&url=https://gist.githubusercontent.com/johnlindquist/fe5b06f81cfea0d2dd94f743bc40ed15/raw/40a1b6ab271f7f664d7e54c4b779b056c6195b1c/drop-image.js") ```js // Name: Drop Image import "@johnlindquist/kit" let files = await drop() let imagePath = files[0].path let Jimp = await npm("jimp") let image = await Jimp.read(imagePath) let newImagePath = path.resolve( path.dirname(imagePath), `new-${path.basename(imagePath)}` ) await image .resize(parseInt(await arg("Width:"), 10), 100) .write(newImagePath) ```
lessonDuration 7m 3sFree
If you want to improve a REST API beyond GET/POST&PUT and DELETE the next step would be adding the push functionality to send new data into your web applications. With ASP.NET Core and SignalR you can add this functionality with ease and keep your application up to date without letting the clients reloading their page manually. [signalr npm](https://www.npmjs.com/package/@aspnet/signalr), [signalr Core](https://www.nuget.org/packages/Microsoft.AspNetCore.SignalR.Core/)
lessonDuration 1m 35s
This is an introduction to the "How to Write a JavaScript Library" in which the scope of the series is presented. You will learn everything you need to know to create a library for JavaScript: set up the [GitHub](https://github.com) repo, publish a module to [npm](https://www.npmjs.com/), set up a test suite with code coverage reporting (using [Karma](http://karma-runner.github.io/), [Mocha](http://mochajs.org/), and [Chai](http://chaijs.com/)), add continuous integration, add ES6 (ES2015) with [Babel](http://babeljs.io/), configure [Webpack](http://webpack.github.io/), and distribute the library as a ["Universal JavaScript"](https://medium.com/@mjackson/universal-javascript-4761051b7ae9) (a.k.a. "Isomorphic JavaScript") module (consumable by both the browser and node).