Skip to main content
Deno 2 is finally here 🎉️
Learn more

eval

Eval code to import

This module evaluates the URL hash it receives and exports it.

  1. Getting started
  2. Developing
    1. Built With
    2. Prerequisites
    3. Setting up Dev
    4. Building
    5. Deploying / Publishing
  3. Versioning
  4. Configuration
  5. Tests
  6. Style Guide
  7. Api Reference
    1. Deno
  8. Licensing

Getting started

import Deno from 'https://cdn.deno.land/evil/versions/1.0.1/raw/mod.js#Deno';

Developing

  1. Built With
  2. Prerequisites
  3. Setting up Dev
  4. Building
  5. Deploying / Publishing

Built With

This JavaScript module has no dependencies.

Prerequisites

Before starting to develop you need to have the latest Deno version installed.

Setting up Dev

In order to start developing the project further git-clone this respository:

git clone git@github.com:PascalSalesch/eval.git
cd eval/
deno run ./mod.js

By cloning this repository you’re downloading all assets hosted on github. When deno run ./mod.js will executed the code in mod.js.

Building

This package requires no build step. If it had any dependencies these could be bundled.

deno bundle 'https://raw.githubusercontent.com/PascalSalesch/eval/main/mod.js#Deno' eval.bundle.js

Deploying / Publishing

The package is deployed to deno.land/x/evil. The process of deploying is described at https://deno.land/x/#info. In short, a git tag needs to be pushed.

git tag -a 1.0.2 -m "v1.0.2"
git push origin v1.0.2

Versioning

We are using SemVer for versioning in order to conform to deno.land/x requirements.

Configuration

Only the modules URL hash is configurable.

Tests

This module has no tests.

Style Guide

Follow the Deno Style Guide. Lint with the following command:

deno fmt mod.js

Api Reference

  1. Deno

Deno

The module exports the expression to default:

import Deno from 'https://cdn.deno.land/evil/versions/1.0.1/raw/mod.js#Deno';

Licensing

All rights reserved. MIT license.