open-index/open-npm huggingface dataset:
npm package: @fermuch/mantra-core
Description: Core API for Mantra
Latest version: 1.6.4
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

#mantra-core

Core API for Mantra.

### Introduction

This repo contains the core APP api where we create an mantra app and initialize it.

Also, this package contains exported functions from both [`react-komposer`](https://github.com/kadirahq/react-komposer) and [`react-simple-di`](https://github.com/kadirahq/react-simple-di).
That's purely for the ease of use.

### Installation

```
npm i --save mantra-core react
```

### App API

```js
import MyComp from './myComp';
import {createApp} from 'mantra-core';

// Here's a simple Mantra Module
const module = {
  routes(injectDeps) {
    const InjectedComp = injectDeps(MyComp);
    // load routes and put `InjectedComp` to the screen.
  },
  load(context, actions) {
    // do any module initialization
  },
  actions: {
    myNamespace: {
      doSomething: (context, arg1) => {}
    }
  }
};

const context = {
  client: new DataClient()
};

const app = createApp(context);
app.loadModule(module);
// app.loadModule(someOtherModule);
app.init();
```
npm package: @fermuch/nativescript-markdown-view
Description: A NativeScript plugin that provides a natively rendered markdown view. With extensions.
Author: Florian Reifschneider
Latest version: 2.1.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# NativeScript Markdown View

[![npm version](https://badge.fury.io/js/nativescript-markdown-view.svg)](http://badge.fury.io/js/nativescript-markdown-view)
[![Build Status](https://travis-ci.com/flore2003/nativescript-markdown-view.svg?branch=master)](https://travis-ci.com/flore2003/nativescript-markdown-view)

[![NPM](https://nodei.co/npm/nativescript-markdown-view.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/nativescript-markdown-view/)

A NativeScript plugin that provides a natively rendered markdown view. 

Uses [Markwon](https://github.com/noties/Markwon) on Android and [TSMarkdownParser](https://github.com/laptobbe/TSMarkdownParser) on iOS.

## Installation

Run the following command from the root of your project:


```javascript
tns plugin add nativescript-markdown-view
```

This command automatically installs the necessary files, as well as stores nativescript-markdown-view as a dependency in your project's package.json file.

## Usage 

You need to add `xmlns:mv="nativescript-markdown-view"` to your page tag, and then simply use `<mv:MarkdownView/>` in order to add the widget to your page.

```xml
<!-- test-page.xml -->
<Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="pageLoaded" xmlns:mv="nativescript-markdown-view">
    <StackLayout class="p-20">
        <mv:MarkdownView markdown="_This_ should be **bold**!" />
    </StackLayout>
</Page>
```

## API
    
| Property | Default | Description |
| --- | --- | --- |
| markdown | "" | The markdown to be rendered on screen |
    
## License

MIT License, see LICENSE file