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

@vkontakte/graph-cache-js

Package Overview
Dependencies
Maintainers
13
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vkontakte/graph-cache-js

This is a ```JavaScript``` parser for [graph-cache](https://github.com/VKCOM/graph-cache) library.

  • 2.5.0
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
13
Weekly downloads
 
Created
Source

graph-cache-js

This is a JavaScript parser for graph-cache library.

Installation

npm install --save graph-cache-js

Usage

const createGraphCache = require('graph-cache');
const jsParser = require('graph-cache-js');

function parser(parserOptions, sign, file, filename) {
  return jsParser(sign, file, filename, parserOptions);
}

const gcache = createGraphCache(parser.bind(null, parserOptions), sign, {});

Parser options

  • packageJSON — path to package.json which you use in your project, so that parser could walk dependencies from npm.

Important! It will only store and check versions of packets from npm. It won't walk your whole dependencies tree, so if you change files inside your node_modules — parser won't be able to detect those changes without changing version of the packet you're importing.

Testing

This library is tested using Mocha and Chai. You can run test suit with npm test. You can run npm run test-watch to rerun tests on file updates.

Contributing

Issues and PR's are welcomed here.

FAQs

Package last updated on 28 Nov 2019

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