Git Product home page Git Product logo

deno_tags's Introduction

common-tags for deno: deno_tags

๐Ÿ”– A set of well-tested, commonly used template literal tag functions for use in ES2015+.

๐ŸŒŸ Plus some extra goodies for easily making your own tags.

Getting Started

To start using this module import it like so:

// import namespaces
import { Tags } from "https://deno.land/x/deno_tags/mod.ts";

// or import directly
import { stripIndent } from "https://deno.land/x/deno_tags/tags.ts";
// or
import { stripIndent } from "https://deno.land/x/deno_tags/tags/stripIndent.ts";

Module Structure

This module is structured for deno and therefore it differs from common-tags.

folders:

  • /tags/*.ts - every tag as single file
  • /transformers/*.ts - every transformer as single file

files:

  • /mod.ts - main module
  • /tags.ts - tags indexed
  • /types.ts - type interfaces to create custom transforms
  • /transformers.ts - transformers indexed
  • /utils.ts - utility methods provided by common-tags

deno_tags's People

Contributors

peanutbother avatar eldnub avatar

Watchers

James Cloos avatar  avatar

deno_tags's Issues

Missing export `id` (1.8.0)

I import like this:

import { oneLine, stripIndents } from "https://deno.land/x/[email protected]/tags.ts"

And I get this error, pointing to this file:

error: Uncaught SyntaxError: The requested module 'https://cdn.esm.sh/[email protected]' does not provide an export named 'id'
import { id as _id } from "https://cdn.esm.sh/[email protected]";

I don't understand how this ever worked, because you pinned the version number in "https://cdn.esm.sh/[email protected]" to 1.8.0, so I would expect that if this worked when you tested it 2 years ago, that it should still be working...

But anyway, can you try to fix it? ๐Ÿ™

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.