@idio/preact-fixture

1.0.0 • Public • Published

@idio/preact-fixture

npm version

@idio/preact-fixture is The Fixture To Test Loading Node_Modules From Front-End.

yarn add -E @idio/preact-fixture

Table Of Contents

API

The package is available by importing its default function:

import preactFixture from '@idio/preact-fixture'

preactFixture(
  arg1: string,
  arg2?: boolean,
): void

Call 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. -
/* yarn example/ */
import preactFixture from '@idio/preact-fixture'

(async () => {
  const res = await preactFixture({
    text: 'example',
  })
  console.log(res)
})()
example

Copyright

(c) Idio 2019

Readme

Keywords

Package Sidebar

Install

npm i @idio/preact-fixture

Weekly Downloads

5

Version

1.0.0

License

MIT

Unpacked Size

4.6 kB

Total Files

11

Last publish

Collaborators

  • zvr