
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Compiles Slice files to JavaScript.
npm install slice2js --save-dev
var slice2js = require('slice2js');
slice2js.compile(args [, options])ArrayList of arguments passed to the slice2js compiler.
| Option | Description |
|---|---|
| -h | Show usage information. |
| -v, --version | Display the Ice version. |
| -DNAME | Define NAME as 1. |
| -DNAME=DEF | Define NAME as DEF. |
| -UNAME | Remove any definition for NAME. |
| -IDIR | Add DIR to the include path for Slice files. |
| -E | Print preprocessor output on stdout. |
| --stdout | Print generated code to stdout. |
| --output-dir DIR | Create files in the directory DIR. |
| --depend | Print dependency information for Slice files. |
| --depend-json | Print dependency information for Slice files in JSON format. |
| --depend-xml | Print dependency information for Slice files in XML format. |
| --depend-file FILE | Write dependencies to FILE instead of standard output. |
| -d, --debug | Print debug messages. |
Additional documentation can be found here.
The slice2js module includes all the Ice Slice files and adds these files to the include file search path.
ObjectObject options is passed directly to child_process.spawn(command[, args][, options]) as the options parameter. This can be used to control things such as stdio, environment, and working directory.
var slice2js = require('slice2js');
slice2js.compile(['Hello.ice'], { stdio: 'inherit' });
slice2js.sliceDirReturns the absolute path of the included Ice Slice files.
var slice2js = require('slice2js');
slice2js.compile(['Hello.ice']).on('close', function(code) {
if (code !== 0) {
console.log('slice2js exited with code ' + code);
} else {
console.log('slice2js finished successfully');
}
});
slice2js can also be installed globally and used from the command line.
npm install -g slice2js
slice2js Hello.ice
For gulp integration refer to the gulp-ice-builder package.
FAQs
Slice to JavaScript compiler
The npm package slice2js receives a total of 41 weekly downloads. As such, slice2js popularity was classified as not popular.
We found that slice2js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.