1.1.8 • Published 3 years ago

j899 v1.1.8

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

Project j899

Try philosophy Less is More

shorten functionality Utility variuos.

  • step 1 Install use node : npm i j899 In Vanilla ES5 ES6 or common projects:

    var u = require("j899");

In TypeScript you can use:

import * as u from "j899";

Test with JestJs

npm run test

image

Examples of Use:

import * as u from "j899";
// TEST log
u.log(
	[
		{
			text: "some import typescript",
			otro: 1,
			value: 12324567
		},
		{ otro: "mas" },
		123
	],
	u.inNumeration('US',4567.2)
);
// --- TEST inNumeration
u.log( '------[ Test Numeration US ]-------' );
u.log( '1234  - ' + u.inNumeration('US', 1234) );
u.log( '1.234 - ' + u.inNumeration('US', 1.234) );
u.log( '1234.56 - ' + u.inNumeration('US', 1234.56) );
u.log( '1000234.56 - ' + u.inNumeration('US', 1000234.56) );
u.log( '0.123 - ' + u.inNumeration('US', 0.123) );

u.log('------[ Test Numeration LA ]-------');
u.log('1234  - ' + u.inNumeration('LA', 1234));			// 1234  	-> 1.234
u.log('1.234 - ' + u.inNumeration('LA', 1.234));		// 1.234 	-> 1,234
u.log('1234.56 - ' + u.inNumeration('LA', 1234.56)); 		// 1234.56 	-> 1.234,56
u.log('1000234.56 - ' + u.inNumeration('LA', 1000234.56)); 	// 1000234.56 	-> 1.000.234,56
u.log('0.123 - ' + u.inNumeration('LA', 0.123)); 		// 0.123 	-> 0,123


// # Tags

u.tag('Build','success','V1.0');
u.tag('license','info','MIT');
u.tag('Test','success','passing');
u.tag('SomeText'); // color default
u.tag('SomeText','info');
u.tag('SomeText','info','custom'); // with text in side blue custom text
u.tag('SomeText','success');
u.tag('SomeText','warning');
u.tag('SomeText','danger');
u.tag('SomeText','gold');
u.tag('SomeText','gold','Good');

Examples tags in log

Tags

npm package

npm package

1.1.8

3 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago