@voyagier/test
Advanced tools
+16
-13
@@ -1,19 +0,22 @@ | ||
| class VoyagierUtils { | ||
| static greet(name) { | ||
| return `Hello, ${name}!`; | ||
| } | ||
| export function greet(firstName, lastName) { | ||
| return `Hello, ${firstName} ${lastName}!`; | ||
| } | ||
| static sum(...numbers) { | ||
| return numbers.reduce((a, b) => a + b, 0); | ||
| } | ||
| export function sum(...numbers) { | ||
| return numbers.reduce((a, b) => a + b, 0); | ||
| } | ||
| static capitalize(str) { | ||
| return str.charAt(0).toUpperCase() + str.slice(1); | ||
| export function capitalize(str, allWords = false) { | ||
| if (allWords) { | ||
| return str.split(' ').map(w => w.charAt(0).toUpperCase() + w.slice(1)).join(' '); | ||
| } | ||
| return str.charAt(0).toUpperCase() + str.slice(1); | ||
| } | ||
| static reverse(str) { | ||
| return str.split('').reverse().join(''); | ||
| } | ||
| export function reverse(str) { | ||
| return str.split('').reverse().join(''); | ||
| } | ||
| module.exports = VoyagierUtils; | ||
| export function slugify(str) { | ||
| return str.toLowerCase().trim().replace(/\s+/g, '-').replace(/[^\w-]/g, ''); | ||
| } |
+3
-2
| { | ||
| "name": "@voyagier/test", | ||
| "version": "1.5.0", | ||
| "version": "2.0.0", | ||
| "description": "Voyagier Test", | ||
| "main": "index.js", | ||
| "type": "module", | ||
| "exports": "./index.js", | ||
| "license": "MIT" | ||
| } |
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
1357
22.69%18
20%Yes
NaN