adding mermaid packages

This commit is contained in:
shiva108
2026-01-23 15:09:56 +01:00
parent 91dccbba6f
commit 2ec4191721
9491 changed files with 1062059 additions and 1 deletions
+21
View File
@@ -0,0 +1,21 @@
Copyright 2012 Helder Santana and other contributors
http://heldr.com/
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+91
View File
@@ -0,0 +1,91 @@
Mimer [![Build Status](https://secure.travis-ci.org/data-uri/mimer.png?branch=master)](http://travis-ci.org/data-uri/mimer) [![NPM version](https://badge.fury.io/js/mimer.png)](http://badge.fury.io/js/mimer)
=========
A simple [MIME][mime] type getter built on top of [Node.js][nodejs].
MODULE
---------
**Browser version:**: [Minified][browserminified] (amd and CommonJS ready) [Source][browsersource]
**Node.js version:** `npm install mimer` into your project
### Getting started
```js
// node and browserify
const Mimer = require('mimer');
// amd (Require.js and etc)
require('path/to/mimer', function (Mimer) {});
// browser (through script tag)
window.Mimer
```
#### Get a MIME type
```js
Mimer('file.css'); // => "text/css"
// or
var mime = new Mimer();
mime.get('file.css'); // => "text/css"
```
#### Set a MIME type
```js
var mime = new Mimer();
mime.set('.monster', 'movie/thriller')
.get('zombie.monster');
// => "movie/thriller"
mime.set(['.rctycoon','.simcity'], 'cms/game');
mime.get('/land/park.rctycoon'); // => "cms/game"
mime.get('maps/city.simcity'); // => "cms/game"
```
CLIENT
---------
`npm install -g mimer` (it may require Root privileges)
### pritting a mime type
```CLI
$ mimer brand.png
```
DEVELOPING
----------
```CLI
$ make install
$ make test
```
Build web version with:
```CLI
$ make build
```
If you'd like to test the full process including npm installer, just run:
```CLI
$ make fulltest
```
## Release notes
See more in [Releases section](https://github.com/data-uri/mimer/releases).
## License
MIT License
(c) [Helder Santana](http://heldr.com)
[nodejs]: http://nodejs.org/download
[bower]: http://bower.io
[mime]: http://en.wikipedia.org/wiki/MIME
[browserminified]: https://raw.github.com/heldr/mimer/master/dist/mimer.min.js
[browsersource]: https://raw.github.com/heldr/mimer/master/dist/mimer.js
Generated Vendored Executable
+2
View File
@@ -0,0 +1,2 @@
#!/usr/bin/env node
require('../cli');
Generated Vendored
+13
View File
@@ -0,0 +1,13 @@
/*
* mimer
* https://github.com/heldr/mimer
*
* Copyright (c) 2013 Helder Santana
* Licensed under the MIT license.
* https://raw.github.com/heldr/mimer/master/MIT-LICENSE.txt
*/
var args = process.argv,
Mimer = require('./dist/mimer');
console.log( '"' + Mimer( process.argv[2] ) + '"' );
+44
View File
@@ -0,0 +1,44 @@
{
"name": "mimer",
"version": "1.1.0",
"description": "A simple Mime type getter",
"main": "dist/mimer.js",
"scripts": {
"test": "npm run lint && npm run build && jest --ci",
"build": "mkdir -p dist && cp src/mimer.d.ts dist/mimer.d.ts && node transpile && uglifyjs --comments '/mimer/' dist/mimer.js -m -o dist/mimer.min.js --source-map url --mangle",
"lint": "jshint src/mimer.js",
"prepublish": "npm run test"
},
"repository": {
"type": "git",
"url": "git://github.com/heldr/mimer.git"
},
"engines": {
"node": ">= 6.0"
},
"files": [
"dist",
"bin",
"cli.js",
"MIT-LICENSE.txt"
],
"bin": {
"mimer": "./bin/mimer"
},
"keywords": [
"mime",
"mimetype",
"file",
"extension",
"extensions"
],
"author": "Helder Santana",
"license": "MIT",
"devDependencies": {
"jshint": "2.10.2",
"requirejs": "2.3.6",
"uglify-js": "3.5.4",
"jest": "^24.7.1",
"request": "^2.88.0"
}
}