abetomo
null+****@clear*****
Mon Sep 4 14:14:42 JST 2017
abetomo 2017-09-04 14:14:42 +0900 (Mon, 04 Sep 2017) New Revision: a41d259b2d343982ee86f5d7c4a07dbd4f632f33 https://github.com/nroonga/nroonga/commit/a41d259b2d343982ee86f5d7c4a07dbd4f632f33 Merged 5c10a6d: Merge pull request #11 from abetomo/update_readme Message: Use syntax highlighting Modified files: README.md Modified: README.md (+12 -10) =================================================================== --- README.md 2017-09-01 13:47:34 +0900 (2fc7f90) +++ README.md 2017-09-04 14:14:42 +0900 (bbbbf60) @@ -49,16 +49,18 @@ A CLI example (like groonga stand-alone mode): ### Examples - var nroonga = require('nroonga'); - var db = new nroonga.Database('database'); - - // Synchronous - console.log(db.commandSync('status')); - - // Asynchronous - db.command('status', function(error, data) { - console.log(data); - }); +```javascript +var nroonga = require('nroonga'); +var db = new nroonga.Database('database'); + +// Synchronous +console.log(db.commandSync('status')); + +// Asynchronous +db.command('status', function(error, data) { + console.log(data); +}); +``` ### new nroonga.Database([[path], openOnly]) -------------- next part -------------- HTML����������������������������... 下载