MCPcopy Index your code
hub / github.com/socketstream/socketstream / formatter

Function formatter

test/unit/client/formatters.test.js:40–53  ·  view source on GitHub ↗
(api, config)

Source from the content-addressed store, hash-verified

38 it('should append a module for handling a code format (new API)',function() {
39
40 var formatter = function (api, config) {
41 api.should.equal(ss.api);
42 return {
43 name: 'f1',
44 extensions: ['a', 'b'],
45 assetType: 'js',
46 contentType: 'text/javascript; charset=utf-8',
47 config: config,
48 root: api.root,
49 compile: function (pathEntry, options, cb) {
50 cb('//');
51 }
52 };
53 };
54
55 ss.client.formatters.add(formatter, {c:'c'});
56

Callers

nothing calls this directly

Calls 1

cbFunction · 0.50

Tested by

no test coverage detected