New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

user-class

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

user-class - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

package.json
{
"name": "user-class",
"version": "1.0.3",
"version": "1.0.4",
"description": "Create a user",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -1,1 +0,66 @@

��
��# User Class
### Create a user object
# Installation
```
npm i user-class
```
# Usage
```javascript
const User = require("user-class")
const Bob = new User("Bob", "Smith", 23124, 20)
```
# Documentation
### Create user
```javascript
const Bob = new User("Bob", "Smith", 23124, 20)
```
### Get first name | Returns a **string**
```javascript
Bob.getFirstName() // Returns "Bob"
```
### Get last name | Returns a **string**
```javascript
Bob.getLastName() // Returns "Smith"
```
### Get full name | Returns a **string**
```javascript
Bob.getLastName() // Returns "Bob Smith"
```
### Get id | Returns a **number**
```javascript
Bob.getId() // Returns 23124
```
### Get age | Returns a **number**
```javascript
Bob.getAge() // Returns 20
```
### Get user object
```javascript
Bob.getUserObject() // Returns 20
```
### Returns an object
```
{
firstName: 'Bob',
lastName: 'Bob',
fullName: 'Bob Bob',
id: 214134,
age: 20
}
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc