diff --git a/README.md b/README.md index c446caa..d53e880 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ -# fastify-typeorm +# -[![Package Version](https://img.shields.io/npm/v/fastify-typeorm-plugin.svg)](https://npm.im/fastify-typeorm-plugin) + +[![Package Version](https://img.shields.io/npm/v/fastify-typeorm.svg)](https://npm.im/fastify-typeorm) [![Build Status](https://travis-ci.org/inthepocket/fastify-typeorm-plugin.svg?branch=master)](https://travis-ci.org/inthepocket/fastify-typeorm-plugin) [![Greenkeeper badge](https://badges.greenkeeper.io/inthepocket/fastify-typeorm-plugin.svg)](https://greenkeeper.io/) [![Coverage Status](https://coveralls.io/repos/github/inthepocket/fastify-typeorm-plugin/badge.svg?branch=master)](https://coveralls.io/github/inthepocket/fastify-typeorm-plugin?branch=master) @@ -11,7 +12,7 @@ Under the hood the official [TypeORM](https://www.npmjs.com/package/typeorm) mod ## Install ```sh -npm install fastify-typeorm-plugin +npm install fastify-typeorm ``` ## Usage @@ -24,7 +25,7 @@ const fastify = require('fastify')(); const user = require('./entity/user'); -fastify.register(require('fastify-typeorm-plugin'), { +fastify.register(require('fastify-typeorm'), { type: 'sqlite', database: './mydb.sql', }); @@ -53,7 +54,7 @@ const connection = await createConnection({ type: 'sqlite', database: './mydb.sql', }); -fastify.register(require('fastify-typeorm-plugin'), { +fastify.register(require('fastify-typeorm'), { connection, }); ```