New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

bor

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bor

A fast async JavaScript pre-processor.

latest
npmnpm
Version
0.0.9
Version published
Maintainers
1
Created
Source

bearded-octo-robot

A crazy fast async JavaScript pre-processor with an even crazier name.

Install

stable

npm install bor

edge

npm install https://github.com/daxxog/bearded-octo-robot/tarball/master

Usage

source file

/*!! include "includeme.js" !!*/
/*!! include "includeme.js" !!*/
/*!! define CONST "HELLO !!*/

/*!! if CONST "HELLO !!*/
console.log(CONSThello);
/*!! endif CONST "HELLO !!*/

calling

var bor = require('bor');
bor.define('hello', ' world!"').robot('./octo.js', function(data) {
    console.log('//BEARD!!\n' + data);
});

Or in HTML

<script type="text/javascript">
<!--!! include "inline.js" !!-->
</script>
<!--!! include "include.html" !!-->

Features

  • Global defines
  • Basic if/endif macro that comments out text
  • Auto comment style detection
  • Inline includes
    • Caches includes for faster processing
  • Not just for JavaScript, works in HTML, XML, css, C, etc. Submit a pull request to support more languages :)
  • Everything is processed in parallel using async

FAQs

Package last updated on 05 Jun 2013

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