mirror of
https://github.com/Shiva108/ai-llm-red-team-handbook.git
synced 2026-08-28 13:50:53 +02:00
adding mermaid packages
This commit is contained in:
+21
@@ -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
@@ -0,0 +1,91 @@
|
||||
Mimer [](http://travis-ci.org/data-uri/mimer) [](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
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env node
|
||||
require('../cli');
|
||||
+13
@@ -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
@@ -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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user