Coder Social home page Coder Social logo

justinawrey / fsrouter Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 0.0 154 KB

A file system based router for Deno & Deno Deploy.

Home Page: https://deno.land/x/fsrouter

License: Mozilla Public License 2.0

TypeScript 97.77% JavaScript 2.23%
deno deno-deploy filesystem javascript router typescript

fsrouter's Introduction

                                                )  (                     
                                               (   ) )                   
                                               ) ( (                         
                                             _______)_              
                                          .-'---------|    please
                                         ( C|/\/\/\/\/|    have a cup
                                          '-./\/\/\/\/|    on me
                                            '_________'
                                             '-------'

fsrouter's People

Contributors

justinawrey avatar semantic-release-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fsrouter's Issues

path issues

justin @ ~/Code/test > deno run --allow-read --allow-net --import-map https://deno.land/x/[email protected]/import_map.json mod.ts
Download https://deno.land/Users/justinawrey/Code/test/pages/index.ts
error: Uncaught (in promise) TypeError: Module not found "https://deno.land/Users/justinawrey/Code/test/pages/index.ts".
    const handler = (await import(absolutePath)).default;

remote 'v' in tag

the semantic-release default tag format violates deno versioning norms

Dynamic Imports Error in Deno Deploy

I have worked with Cloudflare Pages & Netlify Edge Functions, What I like the most about these platforms is they provide filebased routing, middleware pattern & http method identification, but when it comes to Deno I have only found these Library that works when Developing my API.

But when I deploy to Deno Deploy, I found that Deno Deploy doesn't allow for dynamic Imports.
https://deno.land/x/[email protected]/mod.ts?code=#L160

Screenshot_20220822-202954_Brave

Can you fix these Error?

License?

License notice is missing. In legal context, I guess this imlicitly means you're not allowing others to use this package. Could you add a LICENSE file?

My recommendation is MPL-2.0, which is a per-file copyleft license, meaning it ensures the source files are accessible by end-users and still preserves ability to be combined with or used within other copyleft/proprietary softwares.

Resources:

remove import maps

these are good for non-published projects, but harm DX when distributing as a module

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.