1.0.10 • Published 4 months ago

use-os v1.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

codecov

Node.js build and publish package

Running Code Coverage

TypeScript React.js Free. Built on open source. Runs everywhere. GitHub Actions

Installation

Using NPM:

# Using NPM
npm install --save use-os

Using PNPM:

# Using PNPM
pnpm add use-os

Using YARN:

# Using YARN
yarn add use-os

Using

import useOs from 'use-os';

In react component:

export default function HomePage() {
  const os = useOs();

  return (
    <div>
      {os === 'windows' ? (
        <>
          <b>Windows</b> (.exe)
        </>
      ) : (
        <></>
      )}
    </div>
  );
}

Contribute

Clone this repository: git clone https://github.com/hebertcisco/use-os

Open the directory and install the dependencies

cd use-os
npm install

🤝 Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

Or buy me a coffee 🙌🏾

📝 License

Copyright © 2022 Hebert F Barros. This project is MIT licensed.

1.0.10

4 months ago

1.0.9

10 months ago

1.0.8

1 year ago

1.0.2

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

3 years ago

1.0.0

3 years ago