
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
feathers-yaml
Advanced tools
Deprecated in favor of https://github.com/lwhiteley/feathers-lowdb
A Feathers service adapter for YAML data storage that works on all platforms. Using LowDB v3. Good for cashing, development, debugging and offline-support.
$ npm i feathers-yaml
yaml([options])
Returns a new database instance initialized with the given options.
import { yaml as database } from 'feathers-yaml'
export const createModel = (app: Application) => {
return database({
filename: 'users.yaml',
id: '_id', // todo: https://github.com/feathersjs/feathers/issues/2839
startId: 1,
paginate: {
default: 2,
max: 4
}
})
}
Options:
filename
(_optional, default /tmp/low-123-321.yaml
) - The full path to the fileid
(optional, default: 'id'
) - The name of the id field property.startId
(optional, default: 0
) - An id number to start with that will be incremented for every new record (unless it is already set).store
(optional) - An object with id to item assignments to pre-initialize the data storeevents
(optional) - A list of custom service events sent by this servicepaginate
(optional) - A pagination object containing a default
and max
page sizewhitelist
(DEPRECATED) - renamed to allow
allow
(optional) - A list of additional query parameters to allowmulti
(optional) - Allow create
with arrays and update
and remove
with id
null
to change multiple items. Can be true
for all methods or an array of allowed methods (e.g. [ 'remove', 'create' ]
)Todo
Copyright (c) 2023 Feathers contributors
Licensed under the MIT license.
FAQs
A LowDB feathers service store with Yaml support
We found that feathers-yaml demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.