All Projects → kt3k → deno-bin

kt3k / deno-bin

Licence: MIT license
Use Deno via npm

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

Labels

Projects that are alternatives of or similar to deno-bin

core
Server side rendering with The Elm Architecture in Deno
Stars: ✭ 16 (-69.23%)
Mutual labels:  deno
land
Run Deno X module without installation.
Stars: ✭ 39 (-25%)
Mutual labels:  deno
zeno.zsh
zsh fuzzy completion and utility plugin with Deno.
Stars: ✭ 119 (+128.85%)
Mutual labels:  deno
media types
Deprecated. Use std/media_types instead.
Stars: ✭ 21 (-59.62%)
Mutual labels:  deno
awesome-oak
A list of community projects for oak
Stars: ✭ 63 (+21.15%)
Mutual labels:  deno
oembed-parser
Extract oEmbed data from given webpage
Stars: ✭ 65 (+25%)
Mutual labels:  deno
superdeno
Super-agent driven library for testing Deno HTTP servers.
Stars: ✭ 119 (+128.85%)
Mutual labels:  deno
garn-validator
Create validations with ease
Stars: ✭ 42 (-19.23%)
Mutual labels:  deno
deno sticker
🦕 The data I used for submitting for printing deno_sticker.
Stars: ✭ 50 (-3.85%)
Mutual labels:  deno
dotland
deno.land website
Stars: ✭ 947 (+1721.15%)
Mutual labels:  deno
i18next-fs-backend
i18next-fs-backend is a backend layer for i18next using in Node.js and for Deno to load translations from the filesystem.
Stars: ✭ 67 (+28.85%)
Mutual labels:  deno
denoliver
A simple, dependency free static file server for Deno with possibly the worst name ever.
Stars: ✭ 94 (+80.77%)
Mutual labels:  deno
Fae
A functional module for Deno inspired from Ramda.
Stars: ✭ 44 (-15.38%)
Mutual labels:  deno
astrodon
Make Desktop apps with Deno 🦕
Stars: ✭ 826 (+1488.46%)
Mutual labels:  deno
deno cheerio
How to use cheerio in Deno
Stars: ✭ 23 (-55.77%)
Mutual labels:  deno
dmm
Lightweight Deno Module Manager
Stars: ✭ 59 (+13.46%)
Mutual labels:  deno
Thread
type safe multi-threading made easier
Stars: ✭ 34 (-34.62%)
Mutual labels:  deno
shell
A very lightweight framework for building shell/CLI applications. Works in Node.js, Deno, and the browser.
Stars: ✭ 63 (+21.15%)
Mutual labels:  deno
kafkaSaur
Apache Kafka client for Deno
Stars: ✭ 42 (-19.23%)
Mutual labels:  deno
azure-functions-deno-worker
Run Deno 🦕 on Azure Functions ⚡️
Stars: ✭ 99 (+90.38%)
Mutual labels:  deno

deno-bin npm

Use Deno via npm

You can use deno via npm or npx.

Note: This module installs deno at node_modules/deno-bin/bin/deno, and you can use it via npx or npm's run-script.

Usage via npx

npx deno-bin works like deno executable. For example, you can run a deno script https://deno.land/std/examples/welcome.ts like the below:

$ npx deno-bin run https://deno.land/std/examples/welcome.ts
Welcome to Deno!

You can also start repl:

$ npx deno-bin
Deno 1.1.0
exit using ctrl+d or close()
>

You can also use deno tools:

npx deno-bin fmt             # Formats script
npx deno-bin lint --unstable # Checks lint rules

Usage via run-scripts

Use in scripts in package.json.

First install deno-bin:

npm i --save-dev deno-bin

(Note: This installs deno executable at node_modules/deno-bin/bin/deno internally.)

Then use deno in your "scripts".

package.json:

{
  ...
  "scripts": {
    "foo": "deno run some-script.ts"
  },
  ...
}

Then hit the command npm run foo, and it executes deno run some-script.ts with locally installed deno.

Ideas of usages

Use deno lint in your node.js project

You can format your scripts with deno lint which is faster than prettier. (deno lint uses dprint internally, which is mostly compatible with prettier and is implemented in Rust.)

{
  "scripts": {
    "fmt": "deno fmt src"
  }
}

Run some utility scripts

When you need some utility scripts in your repository, you can use deno for it. Because Deno can run typescript out of the box, you can skip any settings about typescript.

{
  "scripts": {
    "task": "deno run ./tools/some-task.ts"
  }
}

About the version of deno

deno-bin downloads the same version of deno executable as its own version number. For example, if you install [email protected], you'll get deno v1.8.1.

License

MIT

History

  • 2021-04-26 Windows support #4
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].