New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bish

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bish

Super-tiny asset concatenation and dependencies with imports

  • 0.0.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Bish

Super-tiny asset (javascript) concatenation and dependencies, à la smash.

Installation

npm install bish

Usage

foo.js

import "bar.js"

alert('bye');

bar.js

alert('hi');

Then:

var bish = require('bish', { /* optional options */ });

bish('path/to/foo.js'); // "alert('hi');\n\nalert('bye');"

### Command-line

$ npm install -g bish
$ bish path/to/foo.js > baz.js

Other features

  • Require directory: import "dir"; to include all files in a directory (recursively) in order
  • Transformers: see below
  • List deps: bish.deps('file.js'); - lists all files included in file.js
  • Require paths: specify paths: [ 'path1', 'path2' ] in options

Transformers

You may want to transform some files based on their extension, for example LESS to CSS.

Usage: bish('file.ext', { transformers: { ext: transformFn } });

transformFn is called with arguments (fileContents, relativePath, fullPath) where relativePath is relative to the root dir (root in options object), and fullPath is the full file path.

FAQs

Package last updated on 26 Jan 2015

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

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