Giter VIP home page Giter VIP logo

os-name's Introduction

os-name's People

Contributors

arthurvr avatar bendingbender avatar clarkio avatar jacargentina avatar jpike88 avatar manuknz avatar rayshan avatar richienb avatar sindresorhus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

os-name's Issues

OS Command Injection in execa (execa@^1.0.0)

dependency execa@^1.0.0 has the following vulnerability reported:

Description:
Attackers could trick execa into executing arbitrary binaries. This behaviour is caused by the setting preferLocal=true which makes execa search for locally installed binaries and executes them.

Identifiers
[email protected]

Severity
Critical

Would you mind please updating this lib to pull in your latest windows-release so that execa may be patched by downstream consumers? Thank you!

Support for commonjs

Hi,

I currently use version 4.0.0 of os-name and was trying to update os-name 5.0.0 to get the new windows 11 display name and I noticed the below error.

`
../../../node_modules/os-name/index.js:1
({"Object.":function(module,exports,require,__dirname,__filename,global,jest){import os from 'node:os';
^^^^^^

SyntaxError: Cannot use import statement outside a module

  1 | import * as os from 'os';
> 2 | const osName  = require('os-name');

`

The newer version of os-name (5.0.0) has adopted ES modules and my current project setup doesn't support it.

Is there a way to support commonjs modules?

why a cli option parser?

Unless you're planning on adding a lot of new features, I think that it just bloats the library.

And, of course, thanks for the library.

osx version?

Instead of "OS X Yosemite", how about "OS X Yosemite 10.10.2"?

Not working with typescript 3.9

Getting the following error
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.