New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

noindex

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

noindex

noIndex is database for multiple users / repositories / backend. in-memory cache for git content

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

noIndex

noIndex is database for multiple users / repositories / backend. in-memory cache for git content.

Why noIndex?

Reason:

<a href="openInEditor('github:repositories:username:reponame=1f8ad68b023efdef5489fe37488c1a9693cf6eca')">BlobName</a>
<ul>
  <li ng-repeat="repo in noIndex.get('github:repositories:username:?')">
    <span>repo.repository</span>
  </li>
</ul>

Usage

$ npm install noindex --save
var noIndex = require('noindex');

var cache = new noIndex();

cache.setDriver(noIndex.getDriver('memory')); // plain memory storage or
cache.setDriver(noIndex.getDriver('redis')); // using redis for storage. session / offline

cache.setService(noIndex.getService('github', {
  token: GITHUB_OAUTH_TOKEN, // OR
  username: GITHUB_USERNAME,
  password: GITHUB_PASSWORD,
}));

Syntax

cache.get('service');
cache.get('service:provider');
cache.get('service:provider:username');
cache.get('service:provider:username:repository');
cache.get('service:provider:username:repository:branchName');
cache.get('service:provider:username:repository#tagName');
cache.get('service:provider:username:repository@commit_sha');
cache.get('service:provider:username:repository=blob_sha');
cache.get('service:provider:username:repository/by/path');

cache.get('service:provider:username:repository:master/README.md');
list services
cache.get(''); // or
cache.get('?');
list service providers
cache.get('github') // or
cache.get('github:?')
list users
cache.get('github:repositories') // or
cache.get('github:repositories:?')
list repositories
cache.get('github:repositories:username') // or
cache.get('github:repositories:username:?')
git branch -r

list repository branches

cache.get('github:repositories:username:reponame')	// or
cache.get('github:repositories:username:reponame:?')
git log -n 1

get latest commit by branch

cache.get('github:repositories:username:reponame:master')
git log -n 1 f7e24dc3bf04e2278bd780abb8ad28867bdbc16d

get commit by sha

cache.get('github:repositories:username:reponame@f7e24dc3bf04e2278bd780abb8ad28867bdbc16d')
git ls-tree HEAD

get tree by branch

cache.get('github:repositories:username:reponame:master$?')
git ls-tree ac49c253adf03ed87af773ef5bba525dfe179ebe

get tree by sha

cache.get('github:repositories:username:reponame$ac49c253adf03ed87af773ef5bba525dfe179ebe')
git cat-file blob 1f8ad68b023efdef5489fe37488c1a9693cf6eca

get blob by sha

cache.get('github:repositories:username:reponame=1f8ad68b023efdef5489fe37488c1a9693cf6eca')
git show HEAD:README.md

get blob by path

cache.get('github:repositories:username:reponame/README.md')
git tag

list repository tags

cache.get('github:repositories:username:reponame#?')
git log v1.0.2 -n 1

get commit / tag by tagname

cache.get('github:repositories:username:reponame#v1.0.2')

Keywords

FAQs

Package last updated on 27 Sep 2015

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