
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
In short you can load libraries from bower, github, http, locally from path or as in memory alias libraries.
It currently supports umd/commonjs/requirejs/amd libraries.
You get: famous libraries pr. default along with meteor integration library.
It was built to support Famo.us in Meteor (examples below) But target has become finegrained reuse of javascript code in general from the web.
If you want a "pure" app without the meteor libraries just remove meteor-platform package.
Meteor package
$ meteor add raix:famono
Requires: Meteor-0.9.0 and of course git
How:
When you install famono it will add a lib/smart.require file to your main app folder:
{
"famous": {
"git": "https://github.com/Famous/famous.git",
"root": "src" // From version 3 of famous
},
"famous.polyfills": {
"git": "https://github.com/Famous/polyfills.git"
}
}
The lib/smart.require library registry comes with references to famous and famous.polyfills repos by default.
This enables you to do:
if (Meteor.isClient) {
// Rig some famo.us deps
famous.polyfills;
famous.core.famous;
// Make sure dom got a body...
Meteor.startup(function() {
var mainContext = famous.core.Engine.createContext();
var renderController = new famous.views.RenderController();
var surfaces = [];
var counter = 0;
for (var i = 0; i < 10; i++) {
surfaces.push(new famous.core.Surface({
content: "Surface: " + (i + 1),
size: [200, 200],
properties: {
backgroundColor: "hsl(" + (i * 360 / 10) + ", 100%, 50%)",
lineHeight: "200px",
textAlign: 'center'
}
}));
}
renderController.show(surfaces[0]);
famous.core.Engine.on("click", function() {
var next = (counter++ + 1) % surfaces.length;
this.show(surfaces[next]);
}.bind(renderController));
mainContext.add(new famous.core.Modifier({align: [.5, .5], origin: [.5, .5]})).add(renderController);
});
}
NOTE: You can still do regular
var Surface = require('famous/core/Surface');
Nope!! - the package scans your code and figure outs dependencies based on your calls to require.
You can add additional libraries like moment/underscore etc
By editing lib/smart.require manually:
"underscore": {
"bower": "underscore"
},
"moment": {
"git": "https://github.com/moment/moment.git"
},
"numeral": {
"git": "https://github.com/adamwdraper/Numeral-js"
},
"jquery": {
"alias": "$"
},
"foo": {
"bower": "foo",
"root": "src/path"
},
"jqueryui": {
"http": "http://code.jquery.com/ui/jquery-ui-git.js"
},
"localDevLib": {
"path": "/just/something/I/m/working/on",
},
"localLib": {
"path": "/some/where/over/the/rainbow"
"watch": "false" // default is true
}
Famono will add/download or removal of the changed namespace LIVE - Note that you can use bower and github as source
I've moved documentation for more advanced features / usage into Advanced.md
Kind regards Morten (aka raix)
FAQs
Famono Npm Library for Meteor.js
We found that famono 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.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.