Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

detect-libc

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detect-libc - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"name": "detect-libc",
"version": "0.0.2",
"version": "0.0.3",
"description": "Node.js module to detect the C standard library (libc) implementation family and version",

@@ -5,0 +5,0 @@ "main": "index.js",

# detect-libc
Node.js module to detect the C standard library (libc) implementation family and version
Node.js module to detect the C standard library (libc) implementation
family and version in use on a given system.
Provides a value suitable for use with the `--libc` option of
[prebuild](https://www.npmjs.com/package/prebuild),
[prebuild-ci](https://www.npmjs.com/package/prebuild-ci) and
[prebuild-install](https://www.npmjs.com/package/prebuild-install),
therefore allowing build and provision of pre-compiled binaries
for musl-based Linux e.g. Alpine as well as glibc-based.
Currently supports libc detection on Linux (glibc, musl) and OS X (bsd).
## Install
```sh
npm install detect-libc
```
## Usage
### detect-libc-family
Prints the libc family e.g. "glibc" or "musl" to stdout.
### detect-libc-version
Prints the libc version e.g. "1.23" to stdout.
### API
```js
const { family, version } = require('detect-libc');
```
* `family` is a String containing the system's libc family.
* `version` is a String representing the system's libc version.
## Integrating with prebuild
```json
"scripts": {
"install": "prebuild-install --libc `detect-libc-family` || node-gyp rebuild",
"test": "mocha && prebuild-ci --libc `detect-libc-family`"
},
"dependencies": {
"detect-libc": "^0.0.3",
"prebuild-install": "^2.1.2"
},
"devDependencies": {
"prebuild": "^6.2.0",
"prebuild-ci": "^2.2.2"
}
```
## Licence
Copyright 2017 Lovell Fuller
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0.html)
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc