Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
feathers-memory
Advanced tools
An in memory CRUD service for Feathers.
npm install feathers-memory --save
Please refer to the Feathers database adapter documentation for more details or directly at:
Here is an example of a Feathers server with a todos
in-memory service that supports pagination:
import feathers from 'feathers';
import bodyParser from 'body-parser';
import rest from 'feathers-rest';
import memory from '../lib';
// Create a feathers instance.
const app = feathers()
// Enable REST services
.configure(rest())
// Turn on JSON parser for REST services
.use(bodyParser.json())
// Turn on URL-encoded parser for REST services
.use(bodyParser.urlencoded({ extended: true }));
// Create an in-memory Feathers service with a default page size of 2 items
// and a maximum size of 4
app.use('/todos', memory({
paginate: {
default: 2,
max: 4
}
}));
// Create a dummy Todo
app.service('todos').create({
text: 'Server todo',
complete: false
}).then(function(todo) {
console.log('Created todo', todo);
});
// Start the server.
var port = 3030;
app.listen(port, function() {
console.log(`Feathers server listening on port ${port}`);
});
You can run this example with npm run example
from the cloned repository and going to localhost:3030/todos. You will see the test Todo that we created at the end of that file.
0.6.0
0.4.0/0.5.0
0.3.0
PATCH
support back in0.2.2
0.2.1
0.2.0
0.1.2
0.1.1
0.1.0
Copyright (c) 2015
Licensed under the MIT license.
v0.6.0 (2016-01-30)
Merged pull requests:
FAQs
An in memory service store
The npm package feathers-memory receives a total of 5,028 weekly downloads. As such, feathers-memory popularity was classified as popular.
We found that feathers-memory demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.