New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

unity-utils

Package Overview
Dependencies
Maintainers
4
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unity-utils

Useful utility functions for the Unity team.

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
4
Created
Source

Unity Utils

Travis-CI Coverage Status npm version Scrutinizer Deps Deps-Dev Dependency Status

Useful utility functions for the Unity team.

Table of Contents

Installation

npm i --save unity-utils

API

uri

URI utilities.

join([arg1, [arg2, ...]])

Deafult: '/'

Returns: {String}

Joins path parts, dropping all falsy parts, except for 0. Accepts any amount of arguments of any type.

Example:

import { join } from 'unity-utils/uri';
console.log(join('path', 'with', null)); // outputs: "path/with"

query(queryObject)

Returns: {Object}

Filters query object, dropping undefined, null and '' values.

queryObject {Object}

Any query-like object.

Example:

import { query } from 'unity-utils/uri';
console.log(query({ param: 'val', 'null': null })); // outputs: "{"param": "val"}"

Contributing

  • Provide conventional commit messages by using npm run commit instead of git commit.
  • Core contributors: use GitHub's Rebase and merge as a default way of merging PRs.

License

MIT © AuRu

Keywords

unity

FAQs

Package last updated on 08 Nov 2016

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