Socket
Socket
Sign inDemoInstall

angular-owlbot-wrapper

Package Overview
Dependencies
1
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    angular-owlbot-wrapper

Owlbot service for AngularJS


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

Readme

Source

npm version GitHub issues GitHub license

angular-owlbot-wrapper

Owlbot service for AngularJS

Description

This is a service for AngularJS that allows for easy requests to the Owlbot dictionary API.

Usage

  1. Install via npm or downloaded files:
    1. via npm: npm install --save angular-owlbot-wrapper
    2. via downloaded files
  2. Add angular-owlbot-wrapper to your application's module dependencies.
  3. Include dependencies and angular-owlbot-wrapper in your HTML.
    • When using npm
    <script src="node_modules/angular-owlbot-wrapper/dist/angular-owlbot-wrapper.min.js"></script>
    
    • When using downloaded files
    <script src="YOUR_PATH/angular-owlbot-wrapper.min.js"></script>
    
  4. Set your Owlbot API token in your config script with the owlbotServiceProvider.setToken function.
  5. Use the angular service owlbotService.

Sample

Javascript:

angular.module('app', ['angular-owlbot-wrapper']);

angular.module('angular-owlbot-wrapper').config(['owlbotServiceProvider', function (owlbotServiceProvider) {
  owlbotServiceProvider.setToken('TOKENGOESHERE');
}]);

angular.module('app')
    .controller('appController', function ($scope, owlbotService) {
        $scope.getDefinition = function (word) {
          return owlbotService.getDefinition(word).then(function (result) {
            console.log(result);
            return result;
          });
        };
    });

LICENSE

MIT

Keywords

FAQs

Last updated on 21 Oct 2019

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