Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/filippo-fonseca/durat

💬 A JS/TS framework for opening the possibilities for what you can do with text.
https://github.com/filippo-fonseca/durat

framework npm npm-package package read text text-analysis text-processing text-to-speech yarn yarn-package

Last synced: 10 days ago
JSON representation

💬 A JS/TS framework for opening the possibilities for what you can do with text.

Awesome Lists containing this project

README

        

# Durat

Created with ❤️ by [@FilippoFonseca](https://www.twitter.com/FilippoFonseca)

![Logo](https://i.ibb.co/L6PttGB/d.png)

## What is this?

Durat is a functional JS/TS open-source Node framework for opening the possibilities of what you can do with text.

Part of an experiment in the fields of universal grammar, language connotation, and linguistics.

## Initialization

**Install Durat:**

```ts
npm i durat
// or
yarn add durat
```

**Initialize it in your project:**

```ts
import Durat from "durat";

// declare an instance of the class Durat and assign it to a variable, as such:

const durat = new Durat();

// now you can use Durat's functionality in your code, as such:

const timeToRead = (input: string) => {
const result = Durat.readTime(input);

return result;
};
```

Let's test the output of our `timeToRead` function, which we initialized above:

```ts
console.log(
timeToRead("This is an example of text you would pass in to this method.")
);
```

**Output in console**: 6

## Use

Read more of the official Durat documentation to understand more about how it works/how to use it by clicking [here]().