Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@achingbrain/nss

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@achingbrain/nss

Mozilla Network Security Services

latest
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Mozilla Network Security Services

64 bit versions of nss tools precompiled for Mac & Linux.

Installation

$ npm install @achingbrain/nss

## Usage

const nss = require('@achingbrain/nss')
const execFile = require('child_process').execFile
const PROFILE_DIR = '/some/path'

// Promises
nss()
.then(paths => {
  execFile(paths.certutil, ['-L', '-d', PROFILE_DIR], (error, result) => {
    // ...
  })
})

// Callbacks
nss((error, paths) => {
  if (error) {
    // handle error
  }

  execFile(paths.certutil, ['-L', '-d', PROFILE_DIR], (error, result) => {
    // ...
  })
})

Building new versions

  • Download a version of nss from Mozilla's download server (choose one bundled with nspr)
  • Run:
    $ tar -xzf nss-X.XX-with-nspr.tar.gz
    $ cd nss
    $ BUILD_OPT=1 USE_64=1 make nss_build_all
    
  • Look in dist for compiled files

FAQs

Package last updated on 21 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts