Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/onokumus/mneme
Hybrid NPM Module for ESM and CommonJS
https://github.com/onokumus/mneme
Last synced: 12 days ago
JSON representation
Hybrid NPM Module for ESM and CommonJS
- Host: GitHub
- URL: https://github.com/onokumus/mneme
- Owner: onokumus
- License: mit
- Created: 2021-08-16T11:58:36.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-18T08:47:23.000Z (over 3 years ago)
- Last Synced: 2024-12-10T03:15:57.373Z (about 1 month ago)
- Language: TypeScript
- Homepage: https://onokumus.com/mneme/
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mneme
> Hybrid NPM Module for ESM and CommonJS
## Install
```sh
npm i mneme
```## Usage
### NodeJS
1. ES Module```json
// package.json
{
"type": "module"
}
```
```js
// app.js
import { mneme } from "mneme";console.log(mneme); //=> Hello from mneme!
```2. CommonJS
```js
const { mneme } = require("mneme");console.log(mneme); //=> Hello from mneme!
```### Browser
```html
import { mneme } from "https://cdn.jsdelivr.net/npm/mneme/dist/esm/index.js";
console.log(mneme); //=> Hello from mneme!console.log(mneme); //=> Hello from mneme!
```