New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

deno-cli

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deno-cli

Command Line Interface (CLI) to create and manage your deno workspace.

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Deno-cli

This project has the porpose to make easier the way to start and manage your code's permissions in an deno project. This CLI needs deno installed in your machine.

You see how you can install deno here.

Install

With NPM:

npm install -g deno-cli

With Yarn:

yarn global add deno-cli

Commands

..>dm --help
Usage: index [options] [command]

Options:
  -V, --version   output the version number
  -h, --help      display help for command

Commands:
  init            Initiate a deno project
  run             Run your deno project
  help [command]  display help for command

init

Create a workspace with two files: index.ts and config.json.

...>dm init
Creating index file and deno run config...
success Saved config file.
success Saved index file.

Config.json contains the following fields:

{
    "name":"",
    "author" : "",
    "version":"1.0.0",
    "main" : "index.ts",
    "permissions":[
        "--allow-net"
        ]
}

In this file you should add all the permissions that you need.

Index.ts

console.log("Hello world!");

run

Run the main file for your deno project based on the permissions at config.json

...>dm run
Executing: deno run --allow-net index.ts
Hello world!

Keywords

FAQs

Package last updated on 17 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc