Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Compile static site for production (with sourcemaps), auto-compiles files like `app.coffee -> app.js`
Compile static site for production (with sourcemaps), auto-compiles files like app.coffee -> app.js
.
This is a very early version with almost no test coverage but give it a shot and report any issues. Currently supports: LiveScript
, babel
, coco
, coffee-script
, dogescript
, less
, marked
, myth
, jade
, node-sass
, stylus
, swig
. To use any of these you must do npm install x
as needed (where x
is the name of the lib), baconize does not install them by default.
var baconize = require('baconize');
var source = '/path/to/input/dir';
var target = '/path/to/output/dir';
baconize(source, target, [options]).then([successFn],[errorFn]);
How it works:
/path/to/input/dir
:For example, if you have a coffeescript file in /path/to/input/dir/my-app/scripts/index.coffee
then it will output the compiled file as /path/to/output/dir/my-app/scripts/index.js
, and the sourcemap as /path/to/output/dir/my-app/scripts/index.js.map
.
This library is designed for use alongside pingy-in-the-middle.
compileBlacklist: filter to blacklist files from being compiled. They will still be copied (without compilation) unless they are negated using the fileFilter
or directoryFilter Options below
. This option is useful for vendor directories (like 'bower_components') which already include the compiled versions of files. See Filters for more.
fileFilter: filter to include/exclude files to be copied to target. See Filters for more.
directoryFilter: filter to include/exclude directories to be copied to target, rules are applied to sub-directories also. See Filters for more.
depth: depth at which to stop recursing even if more subdirectories are found.
Filters take an array of glob strings:
compileBlacklist: [ 'bower_components/**' ]
includes bower_components directory but copies the raw directory instead of compiling files within the directory.
fileFilter: [ '*.json', '*.js' ]
includes all JavaScript and Json files.
directoryFilter: [ '!.git', '!node_modules' ]
includes all directories except the '.git' and 'node_modules'.
See minimatch for some examples of glob strings.
The easiest way to try this out is to clone
the repo, cd
into it and do:
npm install
npm run example
This will compile a basic demo site to examples/output
.
FAQs
Compile static site for production (with sourcemaps), auto-compiles files like `app.coffee -> app.js`
The npm package baconize receives a total of 9 weekly downloads. As such, baconize popularity was classified as not popular.
We found that baconize demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.