mithril-stream-standalone
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "mithril-stream-standalone", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"type": "module", | ||
@@ -25,3 +25,6 @@ "files": [ | ||
"vite": "^2.4.4" | ||
} | ||
}, | ||
"author": "Arthur Clemens <arthurclemens@gmail.com> (http://arthurclemens.com)", | ||
"homepage": "https://github.com/ArthurClemens/mithril-stream-standalone", | ||
"license": "MIT" | ||
} |
# mithril-stream-standalone | ||
Standalone package of [mithril/stream](https://github.com/MithrilJS/mithril.js). | ||
Standalone package of [mithril/stream](https://github.com/MithrilJS/mithril.js) for libraries and applications that use Mithril Stream without the rest of Mithril. | ||
## Rationale | ||
When mithril/stream is used in a React application, Mithril's types conflict with React's. This package eliminates the need for Mithril's types to be installed. | ||
When `mithril/stream` is used in a React application, Mithril's types will conflict with React's. This package eliminates the need for Mithril's types to be installed, avoiding those conflicts. | ||
The code in this package also does not assume `window` to be present, making it suitable for SSR applications (for example created with SvelteKit). | ||
## Usage | ||
@@ -19,3 +21,3 @@ | ||
Replace regular import | ||
Change the regular import when using Mithril: | ||
@@ -26,3 +28,3 @@ ```js | ||
with: | ||
to: | ||
@@ -39,2 +41,3 @@ ```js | ||
* [index.d.ts](https://github.com/MithrilJS/mithril.d.ts/blob/master/stream/index.d.ts) | ||
* [Test files](https://github.com/MithrilJS/mithril.js/tree/next/stream/tests) | ||
@@ -41,0 +44,0 @@ |
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
25992
0
1
1
46