npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

virtu-crud

v1.1.9

Published

server-side crud command router for remote encrypted fileserver

Downloads

6

Readme

virtu-crud

Virtuba server-side crud command router for remote encrypted fileserver

Version:

Lastest version is at 1.1.9

Installations:

Install via npm

npm install virtu-crud

Install directly Clone the repository, in the project root type:

npm install 

Usage

	
var crud = require('virtu-crud'),
	// hash any text on the fly... 
	file_md5 = crud.toHash("test"),
	user_hash = crud.toHash("username"),
	// map should be a json file encrypted inside the user browser before being sent to webserver
	user_map = {"map": map}
	
// --- NEW VERSION ---
/////////////////////////////////////////////
var user_hash = crud.toHash("username")
var s = crud.session()

// create a queue (( if user already exist the queue will be loaded))
var userQueue = s.queue(user_hash)

// add some command on the fly
userQueue.create("", file_md5)
userQueue.read( file_md5)
userQueue.update(hash, file_md5)
userQueue.destroy( file_md5)

// you can add a user directly and save the user queue on the fly to update sessions object 
s.addUser(user_hash)
s.saveUser(userQueue)

// here is sent all queued commands and refrsh the queueobject
userQueue.send(user_map)

// async version of send , you can pass it a callback
userQueue.create("", file_md5)
userQueue.sendAsync(user_map, function(){
	// some code
	})

// You can also add command and refresh the queue without sending 
userQueue.create("", file_md5)
userQueue.refresh()

// --- OLD VERSION ---
//////////////////////////////////////////////////
// or asyncrononous with callback ... 
crud.toHash_async("test". function(err, hash){
	if (err){throw err}
	console.log(hash)

// add some actions on the fly... 
crud.add.create("", file_md5)
crud.add.read(file_md5)
crud.add.update(hash, file_md5)
crud.add.destroy(hash)

// Then send it all to command server async
crud.send(user_hash, user_map, function(err){
    if (err){ console.log(err)}
    return true
})

}//end of crud.toHash_async

Dependencies

    "js-md5": "",
    "aes256": "1.0.2",
    "chai": ""