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

folio

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

folio - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

8

History.md
0.1.1 / 2011-11-02
==================
* Merge branch 'feature/compilers'
* support for compilers based on extension
* Readme updates with example.
* error parsing package.json - fixed
0.1.0 / 2011-11-01

@@ -3,0 +11,0 @@ ==================

2

lib/folio.js

@@ -5,3 +5,3 @@ /**

exports.version = '0.1.0';
exports.version = '0.1.1';

@@ -8,0 +8,0 @@ exports.glossary = require('./glossary');

@@ -16,2 +16,3 @@ var path = require('path'),

this.wrappers.suffix = options.suffix || null;
this.compilers = options.compilers || {};
this.type = options.type || null;

@@ -91,11 +92,16 @@ this.files = (files instanceof Array) ? files : [files];

Glossary.prototype._wrap = function (file, callback) {
var self = this,
prefix = this.wrappers.prefix || '',
suffix = this.wrappers.suffix || '',
compiled;
var self = this
, compilers = this.compilers
, prefix = this.wrappers.prefix || ''
, suffix = this.wrappers.suffix || ''
, compiled = '';
fs.readFile(file, 'utf-8', function (err, source) {
if (err) {
callback(err);
return;
if (err) { callback(err); return; }
var ext = path.extname(file).toLowerCase().substr(1)
, filename = path.basename(file, '.' + ext);
if (compilers[ext]) {
source = compilers[ext](filename, source, file);
}

@@ -102,0 +108,0 @@

{
"author": "Jake Luer <@jakeluer>",
"name": "folio",
"description": "Asset installation, management, and browserfication.",
"version": "0.1.0",
"description": "Asset aggregation and browserfication.",
"version": "0.1.1",
"repository": {

@@ -7,0 +7,0 @@ "type": "git",

# Folio
Work in progress. Come back soon.
Folio is for simple aggregation and serving of client-side javascript libraries.
Use as a build tool for client-side libraries or aggregrate you client-side JS for
serving via express.
#### Examples
* [Backbone.ioBind](https://github.com/logicalparadox/backbone.iobind) uses Folio to
build its distributions. Checkout the [Jakefile](https://github.com/logicalparadox/backbone.iobind/blob/master/Jakefile.js)
## Features

@@ -6,0 +13,0 @@

Sorry, the diff of this file is not supported yet

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