aif-str
v0.0.5
Published
Various useful functions for string conversions and management
Readme
aif-str
Chain conversions and management
A set of useful functions for the treatment of chains.
Installation
Download the library with npm / Yarn, from your local files.
Vía NPM:
$ npm install aif-strVía YARN:
$ yarn add aif-strUse
The library can be included in your code through imports from CommonJS or ES.
ES2015 (ES6):
import * as str from "aif-str";CommonJS:
var str = require("aif-str");With ES imports it is also possible to use individual components. For example:
import { split } from "aif-str";Methods
split (string, [numeric])
Example using the credential definition:
var str = require("aif-str");
var arr = str.split('string',3);
Code output:
// str, ing
Tests
$ npm testO well
$ yarn testbuild
$ npm run buildO well
$ yarn buildSecurity contact information
To report security vulnerabilities, use the following link: https://github.com/mygnet/aif-str/issues
