Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@anietieasuquo/tspa

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anietieasuquo/tspa

TypeScript Persistent API

  • 1.0.1
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

TypeScript Persistent API (TSPA)

Version Documentation Maintenance License: MIT Twitter: anietieasuquo

TypeScript Persistent API (TSPA) is a simple, lightweight, and easy-to-use library for creating and managing persistent data in a TypeScript application.
It provides a simple API for creating, reading, updating, and deleting data in a various data store such as LocalStorage, Firestore, and MongoDB (more to come).

Install

yarn install @anietieasuquo/tspa

Usage

.env

MONGO_URI=mongodb://localhost:27017/mydb
import { Entity, MongoCrudRepository } from '@anietieasuquo/tspa';

interface User extends Entity {
  name: string;
  email: string;
}

const user: User = {
  id: '1',
  name: 'John Doe',
  email: 'johndoe@email.com'
}

const userRepository = new MongoCrudRepository<User>();

userRepository.create(user);

Author

👤 Anietie Asuquo hello@anietieasuquo.com

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.

📝 License

Copyright © 2024 Anietie Asuquo hello@anietieasuquo.com.
This project is MIT licensed.

Keywords

FAQs

Package last updated on 08 Feb 2024

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

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