fancy-platform

0.0.1 • Public • Published

fancy-platform

Shortcuts for os.platform checks.


Examples

import * as platform from 'fancy-platform';

if (platform.is.Windows) {
    ...
}
import * as platform from 'fancy-platform';

platform.if('Windows')
    .then(...)
    .else(...)

platform.if.not('Windows')
    .then(...)

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i fancy-platform

      Weekly Downloads

      36

      Version

      0.0.1

      License

      WTFPL

      Unpacked Size

      1.85 kB

      Total Files

      3

      Last publish

      Collaborators

      • poniraq