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

chain-it

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chain-it

Allows defining multiple modules with lazy asset generation and then either requesting assets via the CLI or starting up a resource server (HTTP)

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

chain-it Build Status

Allows defining multiple modules with lazy asset generation and then either requesting assets via the CLI or starting up a resource server (HTTP)

Getting Started

More to come once published to npm.

Documentation

The goal of this project is to build a lightweight HTTP server which serves up assets generated on the fly using Gulp plugins.

See the chain-it-cli for the CLI for this library.

Examples

Sample chain.js:

var chain = require('chain-it')(),
	less = require('gulp-less'),
	tracuer = require('gulp-traceur'),
	uglify = require('gulp-uglify'),
	concat = require('gulp-concat'),
	from = chain.from;

module.exports = chain
	.resource("/{file}.css",
		from.src('{file}.less')
			.pipe(less)
	)
	.resource("/raw/{1}.js",
		from.src("{1}.js")
			.pipe(tracuer)
			.pipe(uglify)
	)
	.resource("/superMegaFile.js",
		from.src(["test.js", "test2.js"])
			.pipe(uglify)
			.pipe(concat, 'superMegaFile.js')
	);

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

License

Copyright (c) 2014 Matt Winchester
Licensed under the MIT license.

Keywords

chain-it

FAQs

Package last updated on 22 Aug 2014

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