Skip to content

Repply te permite generar respuestas a partir de algunos datos

License

Notifications You must be signed in to change notification settings

frankalvarezdev/repply

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repply

Repply te permite generar respuestas a partir de algunos datos

Instalación

npm i repply o yarn add repply

const repply = require('repply');

Mediante CDN

// Fuse.js
<script src="https://cdn.jsdelivr.net/npm/fuse.js/dist/fuse.min.js"></script>
// Replyjs
<script src="https://cdn.jsdelivr.net/npm/repply/dist/repply.min.js"></script>

Uso

var newData = [
	{
		text: ["Hola mundo",  "ola mundo"],
		reply: ["Hola mundo!"]
	},
];
var result = repply('Hola mundo', {
	data: newData,
	default_data: false,
	error_message: 'Error'
});
// El resultado será: Hola mundo!
console.log(result);
```

About

Repply te permite generar respuestas a partir de algunos datos

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published