![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
[]
(https://travis-ci.org/AppPress/node-faux-knox)
A knox wrapper that allows you to use the local file system instead of S3
###Installation
npm install faux-knox
###Testing
npm test
###API
var knox = process.env.NODE_ENV === 'production'
? require('knox') : require('faux-knox');
var client = knox.createClient({
bucket: 'local/filesystem/dir'
//... other settings
});
//use client everywhere a regular knox client will be used.
####Implemented
#####list
function(options, callback)
callback(err, list)
list
is an object with a Contents array containing the returned files.
#####getFile
function(uri, headers, callback)
callback(err, cres)
cres
is a readable stream with headers attached.
#####putFile
function(from, to, callback)
callback(err, res)
from
is the path to a local file to be read
to
is the path to write the from bytes mounted in the bucket specified.
res.headers.statusCode
is 200 on successful creation.
#####putBuffer
function(buffer, to, headers, callback)
callback(err, res)
buffer
is the buffer to write
to
is where the buffer is written
headers
used by knox module, ignored here
res.headers.statusCode
is 200 on successful creation.
#####deleteFile
function(file, callback)
callback(err, res)
file
path in bucket to delete
res.headers.statusCode
is 204 on successful deletion.
###TODO
All of the other knox functionality
FAQs
Mock requests to knox module using file system
The npm package faux-knox receives a total of 19 weekly downloads. As such, faux-knox popularity was classified as not popular.
We found that faux-knox 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.