Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

deputy

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deputy

caching layer for detective

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.9K
increased by54.74%
Maintainers
1
Weekly downloads
 
Created
Source

deputy

This module is a caching layer around node-detective.

build status

example

cache.js

var deputy = require('deputy');
var detective = deputy(process.env.HOME + '/.config/deputy.json');

var deps = detective.find('require("a"); require("b")');
console.dir(deps);

output:

$ node cache.js 
{ strings: [ 'a', 'b' ], expressions: [] }
$ cat ~/.config/deputy.json 
{"55952d490bd28e3e256f0b036ced834d":{"strings":["a","b"],"expressions":[]}}

methods

var deputy = require('deputy')

var detective = deputy(cacheFile)

Return a new detective object using cacheFile for caching.

install

With npm do:

npm install deputy

license

MIT/X11

Keywords

FAQs

Package last updated on 30 Aug 2012

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc