Lasagne
Easy way to mock api locally
Installation
You can install lasagne
from npm with yarn
:
yarn add lasagne
Or with npm:
npm i lasagne
Core concept and usage
Lasagne was created for make work without api more standartized and allow to make easy switch between remote api and local api layers.
const root = foo: 'bar' { return localStorage } ;async { const res = await // { foo: bar } const item = await // ...}
Then we can replace lasagne
with fetch
or something else to work with remote api layer.
Roadmap
- Make allow to mock
fetch
and other libs for more flexability