valid-remark-to-object
v2.0.4
Published
It's a package that can convert a valid remark to an object.
Downloads
5
Readme
Readme-As-Remark
This's basic validation as remark to array
Install
This project requires NodeJS, try running the following command.
$ npm i valid-remark-to-object
API
exactValue
exactValue({ form: string = '' }, { lang: string = '' })
Supported options and result fields for the exactValue
hook are listed below.
Options
Example:
let ObjAsRemark = await exactValue(
{ formarea: formarea, formarea2: formarea2, formarea3: formarea3 },
{ lang: 'en' }
)
// It's should return an array of objects with remark property in English
// This's Exam: return array when completely
if (ObjAsRemark.error) {
return <p>Error</p>
}
if (ObjAsRemark.result) {
return <p>Remark</p>
}
ExampleListLangSupport:
// Support-Language: en,cn,jp,kr,vn,th