ng-utils

0.0.5 • Public • Published

ng-utils

CommonJS wrapper for angular.js helper functions. In the browser, it uses angular. On the server, most functions fall back to lodash equivalents. Allows you to target some of your angular code to run server side as well. (Just keep any DOM manipulation, etc from leaking into your module).

List of implemented functions.

  • angular.extend
  • angular.equals
  • angular.forEach
  • angular.noop
  • angular.bind
  • angular.fromJson
  • angular.identity
  • angular.isUndefined
  • angular.isDefined
  • angular.isString
  • angular.isFunction
  • angular.isObject
  • angular.isNumber
  • angular.isElement
  • angular.isArray
  • angular.isDate
  • angular.lowercase
  • angular.uppercase

Not implemented (PR's welcome):

  • angular.copy
  • angular.toJson

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.5
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.5
    3
  • 0.0.4
    0
  • 0.0.3
    0

Package Sidebar

Install

npm i ng-utils

Weekly Downloads

3

Version

0.0.5

License

MIT

Last publish

Collaborators

  • jamestalmage