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

angular-owlbot-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-owlbot-wrapper

Owlbot service for AngularJS

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
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

Package last updated on 21 Oct 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