Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
typescript-angular-utilities
Advanced tools
Contains a list of reusable TypeScript libraries, services, and general utilities. These are all defined as angular services and can be injected via the angular dependency injector.
Angular directives that are applied as attributes to an element in order to modify the element's behavior.
Contains Angular filters, which can be applied to bindings using the Angular pipe operator <span>{{myMoney | currency}}</span>
Contains interfaces for several types of filters. Also an abstract base class for defining serializable filters.
Contains miscellaneous tools and utilities for working with objects and other useful tasks.
import { services } from 'typescript-angular-utilities';
import objectNamespace = services.object;
export class MyController {
static $inject: string[] = [objectNamespace.serviceName];
constructor(private objectService: objectNamespace.IObjectUtility): void {
}
...
private testForEmpty(): boolean {
return this.objectService.isNullOrEmpty(this.someValue);
}
}
angular.module('moduleName', [objectNamespace.moduleName])
.controller('controllerName', MyController);
Contains common type definitions or objects.
Contains a simple enumeration describing less than, equal, greater than along with a primitive number comparison function.
export enum CompareResult {
greater = 1,
equal = 0,
less = -1,
}
Can be used to build more descriptive enumerations were each entry contains a value, a machine name (or abbreviation), and a display / pretty name. Extend to build enumeration lists. IItem can also be extended to provide additional meta information on items in the list.
Please always test new builds to ensure non-breaking commits and PRs
The primary build scripts are:
npm run update
Installs external libraries and dependencies. Should be run after pulling down code changes.
npm run build
Compiles TypeScript files into JavaScript.
npm test
or npm run test
Runs the tests.
Use npm run test.debug
to debug test failures.
npm run test.tc
uses the TeamCity reporter to print out results for TeamCity.
npm run test.full
runs the tests in multiple browsers instead of Chrome alone.
npm run bundle
Bundle all of the javascript files together and put in the output folder.
In addition, there are some useful combination tasks:
npm run update-build
npm run build-test
To perform a full build from scratch, including update
, build
, bundle
, run:
npm run full-build
Several tasks can be modified with .watch
in order to watch the file system for changes:
npm run build.watch
npm run build-bundle.watch
npm run build-test.watch
In general, -
is used to indicate combined / joint tasks; .
is used to indicate a subtask or a modification or variation of a task.
FAQs
Typescript utility classes published as angular services
The npm package typescript-angular-utilities receives a total of 131 weekly downloads. As such, typescript-angular-utilities popularity was classified as not popular.
We found that typescript-angular-utilities demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.