The Fixture To Test Loading Node_Modules From Front-End.
npm install @idio/preact-fixture
@idio/preact-fixture is The Fixture To Test Loading Node_Modules From Front-End.
``sh`
yarn add -E @idio/preact-fixture
- Table Of Contents
- API
- preactFixture(arg1: string, arg2?: boolean)
* Config
- Copyright
The package is available by importing its default function:
`js`
import preactFixture from '@idio/preact-fixture'
arg1: string,
arg2?: boolean,
): voidCall this function to get the result you want.
__Config__: Options for the program.
| Name | Type | Description | Default |
| --------- | --------- | ----------------- | ------- |
| shouldRun | _boolean_ | A boolean option. | true |
| __text*__ | _string_ | A text to return. | - |
`js
/ yarn example/ /
import preactFixture from '@idio/preact-fixture'
(async () => {
const res = await preactFixture({
text: 'example',
})
console.log(res)
})()
````
example
(c) [Idio][1] 2019
[1]: https://idio.cc