Socket
Socket
Sign inDemoInstall

at-types-search

Package Overview
Dependencies
123
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    at-types-search

search d.ts from @types


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
5.92 MB
Created
Weekly downloads
 

Readme

Source

search d.ts from @types

Install

$ npm -g install at-types-search

Usage

$ @ts

DEMO

Spec

  • Search index file will be saved to ~/.at-types-search/search-index.json.
  • The saved index file will be used as cache until 24 hours have passed.
  • Search for types package name(partial match), globals(foward match), modules(foward match).

API

var atTypesSearch = require('at-types-search');

// single word
atTypesSearch.search('google').then(function (result) {
  ...
});

// multi words (AND)
atTypesSearch.search([ 'react', 'redux' ]).then(function (result) {
  ...
});

// force update cache
atTypesSearch.search('jquery', true).then(function (result) {
  ...
});

License

MIT

© 2017 ktty1220

Keywords

FAQs

Last updated on 01 Mar 2017

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc