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

addon-tools-raub

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

addon-tools-raub - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

40

index.js

@@ -6,6 +6,6 @@ 'use strict';

const thisDir = __dirname.replace(/\\/g, '/');
const rootPath = __dirname.replace(/\\/g, '/');
const nanInclude = path.dirname(require.resolve('nan')).replace(/\\/g, '/');
const thisInclude = `${thisDir}/include`;
const thisInclude = `${rootPath}/include`;

@@ -43,6 +43,15 @@

const remPath = remDirs.map(k => `${dir}/${k}`).join(' ');
const includePath = `${dir}/include`;
return {
binPath,
remPath,
includePath,
bin() { console.log(binPath); },
rem() { console.log(remDirs.map(k => `${dir}/${k}`).join(' ')); },
include() { console.log(`${dir}/include`); },
rem() { console.log(remPath); },
include() { console.log(includePath); },
};

@@ -53,2 +62,8 @@

const includePath = `${nanInclude} ${thisInclude}`;
const mkdirPath = isWindows ? `${rootPath}/_mkdir.bat` : 'mkdir';
const rmPath = isWindows ? `${rootPath}/_rm.bat` : 'rm';
const cpPath = isWindows ? `${rootPath}/_cp.bat` : 'cp';
module.exports = {

@@ -58,8 +73,15 @@

root() { return console.log(thisDir); },
include() { console.log(`${nanInclude} ${thisInclude}`); },
mkdir() { return console.log(isWindows ? `${thisDir}/_mkdir.bat` : 'mkdir'); },
rm() { return console.log(isWindows ? `${thisDir}/_rm.bat` : 'rm'); },
cp() { return console.log(isWindows ? `${thisDir}/_cp.bat` : 'cp'); },
rootPath,
includePath,
mkdirPath,
rmPath,
cpPath,
root() { return console.log(rootPath); },
include() { console.log(includePath); },
mkdir() { return console.log(mkdirPath); },
rm() { return console.log(rmPath); },
cp() { return console.log(cpPath); },
};

@@ -5,3 +5,3 @@ {

"description": "A set of extra tools for Node.js addons",
"version": "0.0.7",
"version": "0.0.8",
"main": "index.js",

@@ -8,0 +8,0 @@ "keywords": [

@@ -486,11 +486,19 @@ # Addon Tools

input `dir`.
* `bin` - platform binary path.
* `rem` - a space-separated list of binary paths to be cleaned on this platform.
* `include` - include directory for this `dir`.
* `root` - where `'addon-tools-raub'` module is situated.
* `bin()` - prints platform binary path.
* `rem()` - prints a space-separated list of binary paths to be cleaned on this platform.
* `include()` - prints include directory for this `dir`.
* `binPath` - platform binary path.
* `remPath` - a space-separated list of binary paths to be cleaned on this platform.
* `includePath` - include directory for this `dir`.
* `root()` - prints where `'addon-tools-raub'` module is situated.
* `include()` - prints both `'addon-tools-raub'` and `'nan'` include paths. Use with
`node -e` through list context command expansion `<!@(...)`
* `rm` - the location of `'_rm.bat'` file on Windows and plain `rm` on Unix.
* `cp` - the location of `'_cp.bat'` file on Windows and plain `cp` on Unix.
* `mkdir` - the location of `'_mkdir.bat'` file on Windows and plain `mkdir` on Unix.
* `rm()` - prints the location of `'_rm.bat'` file on Windows and plain `rm` on Unix.
* `cp()` - prints the location of `'_cp.bat'` file on Windows and plain `cp` on Unix.
* `mkdir()` - prints the location of `'_mkdir.bat'` file on Windows and plain `mkdir` on Unix.
* `rootPath` - where `'addon-tools-raub'` module is situated.
* `includePath` - both `'addon-tools-raub'` and `'nan'` include paths.
* `rmPath` - the location of `'_rm.bat'` file on Windows and plain `rm` on Unix.
* `cpPath` - the location of `'_cp.bat'` file on Windows and plain `cp` on Unix.
* `mkdirPath` - the location of `'_mkdir.bat'` file on Windows and plain `mkdir` on Unix.

@@ -497,0 +505,0 @@

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