Miss any of our Open RFC calls?Watch the recordings here! »

tizen-common-web

1.0.4 • Public • Published

tizen-common-web

tizen-common-web package is for supporting Tizen Web Device API as commonjs style. Now we are supporting it for Typescript developers. Please note that, In order to use this pacakge, @types/tizen-common-web is required.

Supported APIs

How to use

  • Common js
npm install tizen-common-web
// js
import { systeminfo } from 'tizen-common-web';
const { getCapability } = systeminfo;
 
getCapability('http://tizen.org/feature/screen');
  • Typescript
npm install tizen-common-web
npm install @types/tizen-common-web
// ts
import { systeminfo } from 'tizen-common-web';
const { getCapability } = systeminfo;
 
getCapability('http://tizen.org/feature/screen');

Samples

We offer two samples for common js and typescript.

Common js (webpack + babel-loader)

  • Path : /samples/commonjs
  • How to Run
  1. Move to the path
  2. npm install
  3. npm run wits-init (To use WITs Live reload feature)
  4. npm run start

typescript (webpack + ts-loader)

  • Path : /samples/typescript
  • How to Run
  1. Move to the path
  2. npm install
  3. npm run wits-init (To use WITs Live reload feature)
  4. npm run start

Keywords

none

Install

npm i tizen-common-web

DownloadsWeekly Downloads

25

Version

1.0.4

License

ISC

Unpacked Size

91.4 kB

Total Files

20

Last publish

Collaborators

  • avatar