Nihilist Postmodern Mistake
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

at-types-search

0.1.0 • Public • Published

at-types-search

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

install

npm i at-types-search

Downloadsweekly downloads

3

version

0.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability