NPM compatibility list and declaration files for Deno

NPM compatibility list and declaration files for Deno

NPM compatibility list and declaration files for Deno This repository hosts a list of NPM libraries compatible with Deno as well as their definition files to interoperate with TypeScript inside the Deno compiler.A curated list for compatible NPM libraries and their definition files for its use with Deno

NPM compatibility list and declaration files for Deno

This repository hosts a list of NPM libraries compatible with Deno as well as their definition files to interoperate with TypeScript inside the Deno compiler.

Because Deno only resolves fully qualified file names, type definitions that import other type definitions might not work with Deno. Also, when some type definition supply some global interfaces, they can conflict with Deno. The types located here have been validated to work with Deno.

Available libraries

  • JSS
  • Material UI - Styles
  • Material UI - System
  • Popper.js
  • PropTypes
  • React
  • React Linked State Mixin
  • React Transition Group
  • ReactDOM
  • RxJS

Using the library

There are several ways these type definitions can be referenced. Likely the "best" way is that the CDN provider provides a header of X-TypeScript-Types which points to the type definitions. We are working to have this available, but currently you would need to use the compiler hint of @deno-types. For example to import React:

// @deno-types="https://denopkg.com/soremwar/deno_types/react/v16.13.1/react.d.ts"
import React from "https://cdn.pika.dev/[email protected]";

or

// @deno-types="https://denopkg.com/soremwar/deno_types/react/v16.13.1/react.d.ts"
import React from "https://dev.jspm.io/[email protected]";
Notes:

JSPM transformation of most libraries export everything through the default namespace, so most of the time it might not be suited to work along with this definition library.

Contributing

Feel free to open an issue about a module you would like to see in this library. If you would like to add a package to this list, open a pull request and I'll review it as fast as possible.

Structure

All the libraries added must follow the following structure

.
├── ...
├── module_name                             # Original library name
│   ├── version                             # Specific version of the file, must follow 'v' convention Ex: v1.0.0, v.2.3.1
│       ├── definition_file.ts              # File with the definitions for the library. The library can contain as many of these as needed
│       ├── tests                           # Folder containing tests for the library
│           ├── definition_file_test.ts     # The definitions in this file should map to the main entrypoint of the library. The tests should use the Deno test library
└── ...

Testing

If the test files follow the test pattern they should be picked by deno test

To run the test suite simply run the following command (Deno v1.3+)

deno test -c tsconfig.json

Download Details:

Author: Soremwar

Source Code: https://github.com/Soremwar/deno_types

deno node nodejs javascript

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

AEM Querybuilder for JavaScript (Browser, Node, Deno)

Helix Querybuilder .AEM Querybuilder for JavaScript (Browser, Node, Deno)

NKeys for JavaScript - Node.js, Browsers, and Deno

A public-key signature system based on Ed25519 for the NATS ecosystem system for JavaScript. The nkeys.js library works in Deno, Node.js, and the browser!

Javascript module for easily generating mazes,compatible with both Deno and Node

A work-in-progress Javascript maze generator module, compatible with both Deno and Node.

Deno Tutorial for Beginners: Deno vs. Node: Better Than NodeJS?

Deno is released, it’s time to find out if it can prove a worthy competition for Node.js. What is Deno? Why Deno can be considered an alternative to Node? The main differences between Deno and Node. Write a simple Deno app.

What is Deno? The Node.JS Killer? The Deno-minator to Node?

What is Deno? The Node.JS Killer? The Deno-minator to Node? Deno is the new hype and will it be better than node.js? Deno is a secure runtime for JavaScript and TypeScript that is based on the V8 JavaScript engine and the Rust programming language that addresses Node’s shortcomings